Prefer string comparison operators
ProprietaryReplace strings.Compare(a, b) == 0 with a == b, strings.Compare(a, b) != 0 with a != b, strings.Compare(a, b) < 0 with a < b, and strings.Compare(a, b) > 0 with a > b.
org. openrewrite. golang. codequality. PreferStringComparisonmod run . --recipe= org. openrewrite. golang. codequality. PreferStringComparisonInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.