Skip to content

Commit

Permalink
Fix infinite while loop on empty added file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreckof committed Apr 12, 2024
1 parent 029aade commit d3d4b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/scripts/copyright_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
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
Expand Down

0 comments on commit d3d4b2e

Please sign in to comment.