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