mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 02:36:52 +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:
|
||||
_autofix(json_file, pretty_contents)
|
||||
else:
|
||||
print(get_diff(contents, pretty_contents, json_file))
|
||||
print(
|
||||
get_diff(contents, pretty_contents, json_file),
|
||||
end='',
|
||||
)
|
||||
|
||||
status = 1
|
||||
except ValueError:
|
||||
|
|
|
|||
|
|
@ -130,7 +130,6 @@ def test_diffing_output(capsys):
|
|||
+ "blah": null,
|
||||
+ "foo": "bar"
|
||||
}}
|
||||
|
||||
'''.format(a, b)
|
||||
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue