Remove unnecessary : Unit return type
ProprietaryRemoves the explicit Unit return type annotation from Scala methods. In Scala, methods returning Unit do not need the : Unit annotation.
org. openrewrite. scala. cleanup. RemoveUnitReturnTypemod run . --recipe= org. openrewrite. scala. cleanup. RemoveUnitReturnTypeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.