Remove duplicate conditions in if/else-if chains
ProprietaryRemove 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. RemoveDuplicateConditionsmod run . --recipe= org. openrewrite. javascript. cleanup. RemoveDuplicateConditionsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.