Skip to content

Commit

Permalink
Update src/PIL/ImageStat.py
Browse files Browse the repository at this point in the history
Simplification of return statement

Co-authored-by: Andrew Murray <[email protected]>
  • Loading branch information
florath and radarhere authored Dec 4, 2023
1 parent 96fe0a1 commit ac47b75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PIL/ImageStat.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ def minmax(histogram):
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):
Expand Down

0 comments on commit ac47b75

Please sign in to comment.