Simplify if-return-bool
ProprietaryReplace if cond { return true }; return false with return cond, and vice versa.
org. openrewrite. golang. codequality. SimplifyIfReturnBoolmod run . --recipe= org. openrewrite. golang. codequality. SimplifyIfReturnBoolInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.