Related "if/else if" conditions should not be the same

MSAL

When an if/else if chain contains the same condition more than once, the second branch can never execute because the first matching branch always wins. The duplicate branch is dead code and should be removed.

org.openrewrite.staticanalysis.RemoveDuplicateConditions
mod run . --recipe=org.openrewrite.staticanalysis.RemoveDuplicateConditions

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.