Skip to content

Replacing elif, which is always True, with else#104

Merged
arsenetar merged 2 commits intoarsenetar:masterfrom
PalmtopTiger:remove_elif
Jan 1, 2026
Merged

Replacing elif, which is always True, with else#104
arsenetar merged 2 commits intoarsenetar:masterfrom
PalmtopTiger:remove_elif

Conversation

@PalmtopTiger
Copy link
Copy Markdown
Contributor

list is Iterable and is not str or bytes, so it falls under the if conditions, and elif is always True. We can replace it with just else.

@arsenetar
Copy link
Copy Markdown
Owner

This seems alright, can you update this branch with the latest changes from master so the CI workflows run (they were not setup to correctly trigger on PRs).

@PalmtopTiger
Copy link
Copy Markdown
Contributor Author

Done

@arsenetar arsenetar merged commit 0b6b2fe into arsenetar:master Jan 1, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants