EDM115 / unzip-bot

Telegram bot deployable to heroku that can extract every archive !
https://t.me/unzip_edm115bot
MIT License
91 stars 125 forks source link

refactor: replace multiple `==` checks with `in` #268

Closed deepsource-autofix[bot] closed 7 months ago

deepsource-autofix[bot] commented 7 months ago

To check if a variable is equal to one of many values, combine the values into a tuple and check if the variable is contained in it instead of checking for equality against each of the values. This is faster, less verbose, and more readable.