Prefer bytes.Equal
ProprietaryReplace bytes.Compare(a, b) == 0 with bytes.Equal(a, b) and bytes.Compare(a, b) != 0 with !bytes.Equal(a, b).
org. openrewrite. golang. codequality. PreferBytesEqualmod run . --recipe= org. openrewrite. golang. codequality. PreferBytesEqualInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.