phf1001 / semisupervised-learning-in-cibersecurity

Automatic phishing detection using semi-supervised learning algorithms. Check out web analyzer!
https://krini.herokuapp.com/index
GNU General Public License v3.0
4 stars 1 forks source link

replace multiple `==` checks with `in` #196

Closed deepsource-autofix[bot] closed 1 year ago

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

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication