Skip to content

Commit

Permalink
Merge pull request #269 from JiriPavela/fix-showdiff-display-style
Browse files Browse the repository at this point in the history
Fix incorrect variable init in showdiff header comparison
  • Loading branch information
JiriPavela authored Nov 6, 2024
2 parents d55221d + ed2c8f3 commit 6835637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perun/utils/common/diff_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def generate_diff_of_headers(
# Check if we should include all entries or just the diff ones
display_style = HeaderDisplayStyle(config.lookup_key_recursively("showdiff.display_style"))
only_diff = display_style == HeaderDisplayStyle.DIFF
is_diff: bool = False
for header_key in sorted(header_map.keys()):
is_diff: bool = False
lhs_data, rhs_data = _generate_missing_entry(*header_map[header_key])
if lhs_data.details or rhs_data.details:
# There are details in this entry, compare them one by one
Expand Down

0 comments on commit 6835637

Please sign in to comment.