Remove conditional with identical branches
ProprietaryReplace if/else if/else chains where every branch has the same body with just the body, since the condition has no effect on what code executes.
org. openrewrite. javascript. cleanup. AllBranchesIdenticalmod run . --recipe= org. openrewrite. javascript. cleanup. AllBranchesIdenticalInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.