Skip to content
Snippets Groups Projects
Commit 477584e9 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Rework a long string of "or" statements into a loop with a "break"

parent 1752e791
No related branches found
No related tags found
No related merge requests found
...@@ -173,15 +173,12 @@ class ZipFile(File): ...@@ -173,15 +173,12 @@ class ZipFile(File):
differences = [] differences = []
zipinfo_difference = None zipinfo_difference = None
if Config().exclude_directory_metadata != 'recursive': if Config().exclude_directory_metadata != 'recursive':
zipinfo_difference = ( for x in (self.ZIPINFO, self.ZIPINFO_VERBOSE, BsdtarVerbose):
Difference.from_command(self.ZIPINFO, self.path, other.path) zipinfo_difference = Difference.from_command(
or Difference.from_command( klass, self.path, other.path
self.ZIPINFO_VERBOSE, self.path, other.path
) )
or Difference.from_command( if zipinfo_difference:
BsdtarVerbose, self.path, other.path break
)
)
zipnote_difference = Difference.from_command( zipnote_difference = Difference.from_command(
Zipnote, self.path, other.path Zipnote, self.path, other.path
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment