Skip to content

Commit 93b7b66

Browse files
committed
Remove erroneoous print statement
1 parent 0ff23d4 commit 93b7b66

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

pre_commit_hooks/pretty_format_json.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def get_diff(source, target): # type: (str, str) -> str
6060
source_lines = source.splitlines(True)
6161
target_lines = target.splitlines(True)
6262
diff = ''.join(difflib.ndiff(source_lines, target_lines))
63-
print(diff)
6463
return diff
6564

6665

tests/pretty_format_json_test.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,6 @@ def test_diffing_output(capsys):
126126
+ "foo": "bar"
127127
}
128128
129-
{
130-
- "foo":
131-
- "bar",
132-
- "alist": [2, 34, 234],
133-
+ "alist": [
134-
+ 2,
135-
+ 34,
136-
+ 234
137-
+ ],
138-
- "blah": null
139-
+ "blah": null,
140-
? +
141-
+ "foo": "bar"
142-
}
143-
144129
145130
'''
146131
# output should include a line with the filepath, build it here

0 commit comments

Comments
 (0)