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

Inline call/check of Config().force_details; no need for an additional variable.

parent e2c21172
No related branches found
No related tags found
No related merge requests found
......@@ -110,12 +110,11 @@ def compare_files(file1, file2, source=None, diff_content_only=False):
specialize(file1)
specialize(file2)
force_details = Config().force_details
with profile("has_same_content_as", file1):
has_same_content = file1.has_same_content_as(file2)
if has_same_content:
if not force_details:
if not Config().force_details:
logger.debug(
"has_same_content_as returned True; skipping further comparisons"
)
......
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