mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-01 18:56:52 +00:00
Respond to review feedback
This commit is contained in:
parent
4af7451154
commit
b941d0e6df
4 changed files with 9 additions and 14 deletions
|
|
@ -18,7 +18,7 @@ FAIL = 1
|
|||
|
||||
|
||||
def sort_file_contents(f):
|
||||
before = [line for line in f]
|
||||
before = list(f)
|
||||
after = sorted(before)
|
||||
|
||||
before_string = b''.join(before)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue