Mergeable if statements should be combined
MSALWhen an if statement body contains only another if with no else, the two conditions can be combined with &&. Merging the conditions reduces nesting and makes the code easier to read.
org. openrewrite. staticanalysis. CollapsibleIfStatementsmod run . --recipe= org. openrewrite. staticanalysis. CollapsibleIfStatementsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.