mikeysan / aixingBot

A Python based Discord Bot
MIT License
3 stars 1 forks source link

(PYL-R1714) Consider using `in` #4

Open mikeysan opened 3 years ago

mikeysan commented 3 years ago

Description

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. <!--more--> ## Examples ### Bad …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/mikeysan/aixingBot/issue/PYL-R1714/occurrences/

github-actions[bot] commented 3 years ago

Well, this is new. I am not used to anyone contributing to my projects. Thank you.' first issue