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

Don't show a binary comparison of .zip/.jar files if we have at least one...

Don't show a binary comparison of .zip/.jar files if we have at least one observed nested difference.
parent cb37c123
No related branches found
No related tags found
No related merge requests found
Pipeline #378809 passed
......@@ -196,11 +196,11 @@ class ZipFileBase(File):
if x is None:
return None
# If we have two or more differences, then we have observed differences
# within a nested file. If not, there is likely some difference in
# the metadata that zipinfo cannot discover, so we manually fallback to
# a binary diff.
if len(x.details) >= 2:
# If we have at least one differences, then we have observed
# differences within a nested file. If not, there is likely some
# difference in the metadata that zipinfo cannot discover, so we
# manually fallback to a binary diff.
if len(x.details) >= 1:
return x
x.add_comment(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment