mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 09:27:21 +08:00
Remove unneeded string join
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user