Skip to content

Commit

Permalink
fix: has_lines returns empty str instead of bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Strengthless committed Feb 14, 2025
1 parent 16d3e5a commit 5506898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def has_lines(string: str, count: int) -> bool:
split = string.split("\n", count - 1)

# Make sure the last part isn't empty, which would happen if there was a final newline.
return split[-1] and len(split) == count
return split[-1] != "" and len(split) == count


def pad_base64(data: str) -> str:
Expand Down

0 comments on commit 5506898

Please sign in to comment.