whiTeLeaf-TL / U1bot

一个令人欢喜的娱乐机器
GNU General Public License v3.0
6 stars 3 forks source link

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

Closed deepsource-autofix[bot] closed 6 months ago

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

deepsource-io[bot] commented 6 months ago

Here's the code health analysis summary for commits 5a02eea..3df5646. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ Success
🎯 1 occurence resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.