Skip to content

Commit 68db969

Browse files
radarherehugovk
andauthored
Removed else
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 19a6ede commit 68db969

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/PIL/Image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,8 +2526,7 @@ def split(self) -> tuple[Image, ...]:
25262526
self.load()
25272527
if self.im.bands == 1:
25282528
return (self.copy(),)
2529-
else:
2530-
return tuple(map(self._new, self.im.split()))
2529+
return tuple(map(self._new, self.im.split()))
25312530

25322531
def getchannel(self, channel):
25332532
"""

0 commit comments

Comments
 (0)