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.
OpenRewrite. Recipes. CSharp. CodeQuality. Redundancy. AllBranchesIdenticalmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Redundancy. AllBranchesIdenticalInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.