Prefer direct Either operations over projections
ProprietaryFinds usages of .left and .right projections on Either. Since Scala 2.13, Either is right-biased so map/flatMap work directly. Use swap to operate on the Left side instead of .left.
org. openrewrite. scala. errorhandling. PreferDirectEitherOpsmod run . --recipe= org. openrewrite. scala. errorhandling. PreferDirectEitherOpsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.