Reduce error check nesting

Proprietary

Invert if err == nil { body } to if err != nil { return err } followed by the body, reducing nesting in error-handling code.

org.openrewrite.golang.codequality.ReduceErrorCheckNesting
mod run . --recipe=org.openrewrite.golang.codequality.ReduceErrorCheckNesting

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.