Skip to content

Commit d6c0aa5

Browse files
committed
Remove useless newline
1 parent ea8fbf9 commit d6c0aa5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pre_commit_hooks/pretty_format_json.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
129129
if args.autofix:
130130
_autofix(json_file, pretty_contents)
131131
else:
132-
print(get_diff(contents, pretty_contents, json_file))
132+
print(
133+
get_diff(contents, pretty_contents, json_file),
134+
end='',
135+
)
133136

134137
status = 1
135138
except ValueError:

tests/pretty_format_json_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def test_diffing_output(capsys):
130130
+ "blah": null,
131131
+ "foo": "bar"
132132
}}
133-
134133
'''.format(a, b)
135134
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
136135

0 commit comments

Comments
 (0)