itsHenry35 / ledu

一个用Python编写的乐读视频一键下载器~
https://itshenry35.github.io/ledu/
Apache License 2.0
5 stars 0 forks source link

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

Closed deepsource-autofix[bot] closed 10 months ago

deepsource-autofix[bot] commented 10 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.