Simplify lambda blocks to expressions
MSALSingle-line statement lambdas returning a value can be replaced with expression lambdas. Expression-form lambdas are more concise and consistent with a functional programming style, making the code easier to scan.
org. openrewrite. staticanalysis. LambdaBlockToExpressionmod run . --recipe= org. openrewrite. staticanalysis. LambdaBlockToExpressionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.