Consecutive if
statements with the same condition are probably the result of a
copy-paste. This checker ignores function calls as they could have side-effects.
Consider revisiting the if
condition.
if x == 42 {
/* ... */
} else if x == 42 {
/* ... */
}