Go

Go

By DeepSource

Logical expression evaluating to constant value RVV-A0001

Anti-pattern
Autofix

For logical expressions that evaluate to a constant value, the constant value should be used.

Examples

Bad practice

return f != f

Recommended

return false