mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Remove unneeded string join
This commit is contained in:
parent
ec6c39ee62
commit
ea8fbf9cf0
1 changed files with 1 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue