Skip to content

Commit ea8fbf9

Browse files
committed
Remove unneeded string join
1 parent ec6c39e commit ea8fbf9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pre_commit_hooks/pretty_format_json.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
129129
if args.autofix:
130130
_autofix(json_file, pretty_contents)
131131
else:
132-
print(
133-
get_diff(
134-
''.join(contents),
135-
pretty_contents,
136-
json_file,
137-
),
138-
)
132+
print(get_diff(contents, pretty_contents, json_file))
139133

140134
status = 1
141135
except ValueError:

0 commit comments

Comments
 (0)