Simplify bytes.Equal nil check
ProprietaryReplace bytes.Equal(b, nil) and bytes.Equal(nil, b) with len(b) == 0.
org. openrewrite. golang. codequality. SimplifyBytesEqualNilmod run . --recipe= org. openrewrite. golang. codequality. SimplifyBytesEqualNilInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.