Remove if/else with identical branches
ProprietaryReplace an if/else chain where every branch has the same body with just the body, since the conditions have no effect on the outcome.
org. openrewrite. golang. codequality. AllBranchesIdenticalmod run . --recipe= org. openrewrite. golang. codequality. AllBranchesIdenticalInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.