Bug 1725404 - Only print warning about -J if '--diff' was specified, r=bhearsum

A drive-by fix I noticed.

Depends on D122778

Differential Revision: https://phabricator.services.mozilla.com/D122779
This commit is contained in:
Andrew Halberstadt 2021-08-17 13:35:13 +00:00
parent b3348551e1
commit c832a0b42a

View File

@ -438,8 +438,10 @@ class MachCommands(MachCommandBase):
fh = options["output_file"]
if fh:
fh = open(fh, "w")
print(out, file=fh)
if options["format"] != "json":
if options["diff"] and options["format"] != "json":
logger.info(
"If you were expecting differences in task bodies "
'you should pass "-J"\n'