Simplify constant if branch execution

MSAL

Checks for if conditions that are always true or false and simplifies them. Branches that can never execute are dead code that misleads readers and may mask logic errors introduced during refactoring.

org.openrewrite.staticanalysis.SimplifyConstantIfBranchExecution
mod run . --recipe=org.openrewrite.staticanalysis.SimplifyConstantIfBranchExecution

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