[diffoscope] 02/02: diffoscope.comparators.zip: Drop unnecessary else after return
Chris Lamb
chris at chris-lamb.co.uk
Thu Jan 11 11:00:03 CET 2018
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit b5ba6a92bef4548abc3e61946c51cf1a89dee440
Author: Chris Lamb <lamby at debian.org>
Date: Thu Jan 11 13:01:46 2018 +0530
diffoscope.comparators.zip: Drop unnecessary else after return
---
diffoscope/comparators/zip.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/diffoscope/comparators/zip.py b/diffoscope/comparators/zip.py
index 58a63ce..60d41ac 100644
--- a/diffoscope/comparators/zip.py
+++ b/diffoscope/comparators/zip.py
@@ -105,8 +105,7 @@ class ZipContainer(Archive):
zipinfo = self.archive.getinfo(member_name)
if zipinfo.filename[-1] == '/':
return ZipDirectory(self, member_name)
- else:
- return ArchiveMember(self, member_name)
+ return ArchiveMember(self, member_name)
class ZipFile(File):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list