Merge consecutive branches with identical bodies

Proprietary

Combine consecutive if/else if branches that have the same body into a single branch with conditions joined by ||.

org.openrewrite.javascript.cleanup.MergeIdenticalBranches
mod run . --recipe=org.openrewrite.javascript.cleanup.MergeIdenticalBranches

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