Commit b5ba6a92 authored by Chris Lamb's avatar Chris Lamb 💬

diffoscope.comparators.zip: Drop unnecessary else after return

parent c32d58ec
...@@ -105,8 +105,7 @@ class ZipContainer(Archive): ...@@ -105,8 +105,7 @@ class ZipContainer(Archive):
zipinfo = self.archive.getinfo(member_name) zipinfo = self.archive.getinfo(member_name)
if zipinfo.filename[-1] == '/': if zipinfo.filename[-1] == '/':
return ZipDirectory(self, member_name) return ZipDirectory(self, member_name)
else: return ArchiveMember(self, member_name)
return ArchiveMember(self, member_name)
class ZipFile(File): class ZipFile(File):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment