if
or else
branch SCC-SA9003 91 u := User{"man1238888456", "", 1140}
92 valid := Validation{}
93 b, err := valid.Valid(&u)
94 if err != nil { 95 // handle error
96 }
97 if !b {
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
}