Skip to content

Commit

Permalink
Update check_crlf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 authored Jun 29, 2024
1 parent 0b0aa7c commit b6291c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/check_crlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def is_file_crlf(path: str) -> bool:
# https://stackoverflow.com/a/29697732/4678631
with open(path, "rb") as f:
for line in f:
if line.endswith(b"\r\n"):
if line.endswith(b"\n"):
return True

return False
Expand Down

0 comments on commit b6291c9

Please sign in to comment.