Fix C407
diff --git a/pre_commit_hooks/file_contents_sorter.py b/pre_commit_hooks/file_contents_sorter.py index 41ce306..983ba01 100644 --- a/pre_commit_hooks/file_contents_sorter.py +++ b/pre_commit_hooks/file_contents_sorter.py
@@ -20,7 +20,7 @@ def sort_file_contents(f: IO[bytes]) -> int: before = list(f) - after = sorted([line.strip(b'\n\r') for line in before if line.strip()]) + after = sorted(line.strip(b'\n\r') for line in before if line.strip()) before_string = b''.join(before) after_string = b'\n'.join(after) + b'\n'