Remove duplicate conditions in if/else-if chains

Proprietary

Remove else if branches whose condition is identical to an earlier branch in the same if/else if chain when all conditions from the first occurrence through the duplicate are provably free of side effects.

io.moderne.javascript.cleanup.RemoveDuplicateConditions
mod run . --recipe=io.moderne.javascript.cleanup.RemoveDuplicateConditions

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