Reduce error check nesting
ProprietaryInvert if err == nil { body } to if err != nil { return err } followed by the body, reducing nesting in error-handling code.
org. openrewrite. golang. codequality. ReduceErrorCheckNestingmod run . --recipe= org. openrewrite. golang. codequality. ReduceErrorCheckNestingInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.