Mergeable if statements should be combined

MSAL

When 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.CollapsibleIfStatements
mod run . --recipe=org.openrewrite.staticanalysis.CollapsibleIfStatements

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