Skip to content

Commit

Permalink
Do not print empty diffs of called functions if the compared function…
Browse files Browse the repository at this point in the history
… is equal
  • Loading branch information
zacikpa committed Jul 20, 2023
1 parent b49aeb6 commit 6878428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diffkemp/diffkemp.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ def text_indent(text, width):

for called_res in sorted(fun_result.inner.values(),
key=lambda r: r.first.name):
if called_res.diff == "" and called_res.first.covered:
if called_res.diff == "" and (
called_res.first.covered or fun_result.kind == Result.Kind.EQUAL
):
# Do not print empty diffs
continue

Expand Down

0 comments on commit 6878428

Please sign in to comment.