Skip to content

Commit

Permalink
Fix empty text files
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Oct 28, 2024
1 parent 55c9273 commit ff3ed4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast64_internal/sm64/sm64_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def write_or_delete_if_found(
footer_pos -= diff

additions = ""
if text[footer_pos - 1] not in {"\n", "\r"}: # add new line if not there
if text and text[footer_pos - 1] not in {"\n", "\r"}: # add new line if not there
additions += "\n"
for descriptor in to_add:
if descriptor in found_matches:
Expand Down

0 comments on commit ff3ed4b

Please sign in to comment.