Skip to content

Commit

Permalink
Merge pull request #90588 from ajreckof/Fix-infinite-while-loop-on-em…
Browse files Browse the repository at this point in the history
…pty-added-file

Fix infinite while loop on empty added file.
  • Loading branch information
akien-mga committed Apr 13, 2024
2 parents dae5109 + d3d4b2e commit 4bce45b
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 4bce45b

Please sign in to comment.