mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-29 01:28:24 +00:00
Merge pull request #28 from Derpy-Leggies/deepsource-autofix-d3b417dc
refactor: refactor `if` expression
This commit is contained in:
commit
0b640bf93c
|
@ -24,7 +24,7 @@ class Colour:
|
|||
]
|
||||
lightness = (0.2126 * cont[0]) + (0.7152 * cont[1]) + (0.0722 * cont[2])
|
||||
|
||||
return True if lightness > threshold else False
|
||||
return lightness > threshold
|
||||
|
||||
def to_hsv(self):
|
||||
r, g, b = self.rgb
|
||||
|
|
Loading…
Reference in a new issue