Removed else

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-02-10 21:50:48 +11:00 committed by GitHub
parent 19a6edeecc
commit 68db96981c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2526,8 +2526,7 @@ class Image:
self.load()
if self.im.bands == 1:
return (self.copy(),)
else:
return tuple(map(self._new, self.im.split()))
return tuple(map(self._new, self.im.split()))
def getchannel(self, channel):
"""