By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Security
Style
Type check
For logical expressions that evaluate to a constant value, the constant value should be used.
Non-preferred way:
return f != f
Preferred way:
return false