Remove duplicate conditions

Proprietary

Remove else-if branches whose condition duplicates an earlier branch in the same if/else-if chain, since the later branch is dead code.

org.openrewrite.golang.codequality.RemoveDuplicateConditions
mod run . --recipe=org.openrewrite.golang.codequality.RemoveDuplicateConditions

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