Skip to content

Commit 5506898

Browse files
committed
fix: has_lines returns empty str instead of bool
1 parent 16d3e5a commit 5506898

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bot/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def has_lines(string: str, count: int) -> bool:
2525
split = string.split("\n", count - 1)
2626

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

3030

3131
def pad_base64(data: str) -> str:

0 commit comments

Comments
 (0)