if
has the same condition as the previous if
: let Keyword::Do { .. } = op_type
625 )
626 });
627 }
628 } else if let Keyword::Do { .. } = op_type {629 if stack != expected_stack {
630 return Err(TypecheckError(InvalidEnd)).with_context(|| {
631 format!(
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 {
/* ... */
}