Skip to content

Commit e75e180

Browse files
authored
Merge pull request #484 from mxr/flake8-comprehensions
Fix C407
2 parents e0c9d51 + c8d9fb1 commit e75e180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/file_contents_sorter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
def sort_file_contents(f: IO[bytes]) -> int:
2222
before = list(f)
23-
after = sorted([line.strip(b'\n\r') for line in before if line.strip()])
23+
after = sorted(line.strip(b'\n\r') for line in before if line.strip())
2424

2525
before_string = b''.join(before)
2626
after_string = b'\n'.join(after) + b'\n'

0 commit comments

Comments
 (0)