Catch clause should do more than just rethrow
MSALA catch clause that only rethrows the caught exception is unnecessary. Letting the exception bubble up as normal achieves the same result with less code. Such catch blocks add visual noise and indentation without changing program behavior.
org. openrewrite. staticanalysis. CatchClauseOnlyRethrowsmod run . --recipe= org. openrewrite. staticanalysis. CatchClauseOnlyRethrowsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.