From ea8fbf9cf0d132a91af13729b766a3a31b8bfdac Mon Sep 17 00:00:00 2001 From: Joey Pinhas Date: Tue, 24 Sep 2019 15:47:53 -0400 Subject: [PATCH] Remove unneeded string join --- pre_commit_hooks/pretty_format_json.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pre_commit_hooks/pretty_format_json.py b/pre_commit_hooks/pretty_format_json.py index fa83305..642ed65 100644 --- a/pre_commit_hooks/pretty_format_json.py +++ b/pre_commit_hooks/pretty_format_json.py @@ -129,13 +129,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int if args.autofix: _autofix(json_file, pretty_contents) else: - print( - get_diff( - ''.join(contents), - pretty_contents, - json_file, - ), - ) + print(get_diff(contents, pretty_contents, json_file)) status = 1 except ValueError: