Go

Go

By DeepSource

Logical expression evaluating to constant value detectedRVV-A0001

Anti-pattern
Has Autofix

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