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:
Andreas Florath 2023-12-04 10:27:30 +01:00 committed by GitHub
parent 96fe0a103b
commit ac47b75953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):