mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 15:20:33 +03:00
Update src/PIL/ImageStat.py
Simplification of return statement Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
96fe0a103b
commit
ac47b75953
|
@ -62,10 +62,7 @@ class Stat:
|
|||
if histogram[i]:
|
||||
res_max = i
|
||||
break
|
||||
if res_max >= res_min:
|
||||
return res_min, res_max
|
||||
else:
|
||||
return (255, 0)
|
||||
return res_min, res_max
|
||||
|
||||
v = []
|
||||
for i in range(0, len(self.h), 256):
|
||||
|
|
Loading…
Reference in New Issue
Block a user