Update new-line-and-empty-line-checker.py

Fix the erroneous 'has an empty entry at line $file-line-length+1' error
This commit is contained in:
DoI 2024-01-16 16:22:34 +13:00 committed by GitHub
parent 654206a7b1
commit 2fad2aefbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ for i in files:
counter=1
for line in contents.split(b'\n'):
for line in contents.splitlines(False):
if len(line)==0:
print("[!] %s has an empty entry at line %i!"%(i,counter))
exit(2)