Remove redundant else after return

Proprietary

Remove if ... { return } else { ... } where the else is redundant because the if block ends with a return.

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

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