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

Clarify control flow in diffoscope.profiling.

parent 22aba228
No related branches found
No related tags found
No related merge requests found
......@@ -67,9 +67,10 @@ class ProfileManager:
if parsed_args.profile_output is None:
with setup_logging(parsed_args.debug, None) as logger:
self.output(lambda x: logger.debug(x.strip("\n")))
else:
with make_printer(parsed_args.profile_output) as fn:
self.output(fn)
return
with make_printer(parsed_args.profile_output) as fn:
self.output(fn)
def output(self, print_fn):
title = "# Profiling output for: {}".format(" ".join(sys.argv))
......
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