Merge identical branches
ProprietaryMerge consecutive if/else-if branches that have identical bodies by combining their conditions with ||.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. MergeIdenticalBranchesmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. MergeIdenticalBranchesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.