Commit 3d439109 by Alexander Popov

Drop a useless 'if'

This condition has been checked at the beginning of the function.

Noticed this in the code coverage report.
parent 20e00402
...@@ -142,7 +142,6 @@ def print_checklist(mode, checklist, with_results): ...@@ -142,7 +142,6 @@ def print_checklist(mode, checklist, with_results):
fail_suppressed = ' (suppressed in output)' fail_suppressed = ' (suppressed in output)'
if mode == 'show_fail': if mode == 'show_fail':
ok_suppressed = ' (suppressed in output)' ok_suppressed = ' (suppressed in output)'
if mode != 'json':
print(f'[+] Config check is finished: \'OK\' - {ok_count}{ok_suppressed} / \'FAIL\' - {fail_count}{fail_suppressed}') print(f'[+] Config check is finished: \'OK\' - {ok_count}{ok_suppressed} / \'FAIL\' - {fail_count}{fail_suppressed}')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment