diff --git a/src/PIL/ImageStat.py b/src/PIL/ImageStat.py index efef0802f4d..2de24b6c7ca 100644 --- a/src/PIL/ImageStat.py +++ b/src/PIL/ImageStat.py @@ -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):