Remove empty blocks
MSALRemove empty blocks that effectively do nothing. Empty blocks are ambiguous -- they may indicate incomplete implementation or accidentally deleted code -- and removing them makes the intent of the surrounding code explicit.
org. openrewrite. staticanalysis. EmptyBlockmod run . --recipe= org. openrewrite. staticanalysis. EmptyBlockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.