Remove duplicate conditions

Proprietary

Remove else-if branches whose condition duplicates an earlier branch in the same if/else-if chain, since the later branch is dead code.

OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveDuplicateConditions
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveDuplicateConditions

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.