if-else
expressions with the same if
and else
parts are probably a result
of a copy-paste. The result of the expression is independent of the condition.
Consider revisiting the else
block.
let foo = if important_flag {
42
} else {
42 // probably a mistake
};