Remove duplicate conditions in if/else-if chains

Proprietary

Remove else if branches whose condition is identical to an earlier branch in the same if/else if chain, since the duplicate branch is dead code that can never execute.

org.openrewrite.javascript.cleanup.RemoveDuplicateConditions
mod run . --recipe=org.openrewrite.javascript.cleanup.RemoveDuplicateConditions

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