Skip to content

Commit dcbf434

Browse files
Apply suggestion: the bytes(...) call does nothing here
1 parent c431f09 commit dcbf434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/trailing_whitespace_fixer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
9494
if _fix_file(
9595
filename,
9696
md,
97-
None if args.chars is None else bytes(args.chars.encode('utf-8')),
97+
None if args.chars is None else args.chars.encode('utf-8'),
9898
):
9999
print('Fixing {}'.format(filename))
100100
return_code = 1

0 commit comments

Comments
 (0)