Clean up pkg/api.
These are based on recommendation from [staticcheck](http://staticcheck.io/).
This commit is contained in:
@@ -69,7 +69,7 @@ func doDeepCopyTest(t *testing.T, kind schema.GroupVersionKind, f *fuzz.Fuzzer)
|
||||
return
|
||||
}
|
||||
|
||||
if bytes.Compare(prefuzzData.Bytes(), postfuzzData.Bytes()) != 0 {
|
||||
if !bytes.Equal(prefuzzData.Bytes(), postfuzzData.Bytes()) {
|
||||
t.Log(diff.StringDiff(prefuzzData.String(), postfuzzData.String()))
|
||||
t.Errorf("Fuzzing copy modified original of %#v", kind)
|
||||
return
|
||||
|
Reference in New Issue
Block a user