Remove unneeded block
MSALFlatten blocks into inline statements when possible. Unnecessary nested blocks add indentation and scope boundaries that obscure the control flow, often indicating code that should be extracted into its own method.
org. openrewrite. staticanalysis. RemoveUnneededBlockmod run . --recipe= org. openrewrite. staticanalysis. RemoveUnneededBlockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.