mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 05:14:18 +00:00
Remove useless newline
This commit is contained in:
parent
ea8fbf9cf0
commit
d6c0aa5a35
2 changed files with 4 additions and 2 deletions
|
|
@ -129,7 +129,10 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
||||||
if args.autofix:
|
if args.autofix:
|
||||||
_autofix(json_file, pretty_contents)
|
_autofix(json_file, pretty_contents)
|
||||||
else:
|
else:
|
||||||
print(get_diff(contents, pretty_contents, json_file))
|
print(
|
||||||
|
get_diff(contents, pretty_contents, json_file),
|
||||||
|
end='',
|
||||||
|
)
|
||||||
|
|
||||||
status = 1
|
status = 1
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,6 @@ def test_diffing_output(capsys):
|
||||||
+ "blah": null,
|
+ "blah": null,
|
||||||
+ "foo": "bar"
|
+ "foo": "bar"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
'''.format(a, b)
|
'''.format(a, b)
|
||||||
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
|
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue