By DeepSource
All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
if
else
Empty body in an if or else branch, so either remove this code or comment it out to keep the codebase clean.
if x > 0 { sum += x } else { // empty block }
if x > 0 { sum += x }