Merge pull request #90588 from ajreckof/Fix-infinite-while-loop-on-empty-added-file

Fix infinite while loop on empty added file.
This commit is contained in:
Rémi Verschelde 2024-04-13 11:30:41 +02:00
commit 4bce45b746
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -73,7 +73,7 @@ for f in sys.argv[1:]:
line = fileread.readline()
header_done = False
while line.strip() == "": # Skip empty lines at the top
while line.strip() == "" and line != "": # Skip empty lines at the top
line = fileread.readline()
if line.find("/**********") == -1: # Godot header starts this way