Simplify if-return-bool

Proprietary

Replace if cond { return true }; return false with return cond, and vice versa.

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

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