fix nilness finding

This commit is contained in:
Sun Yimin 2023-04-20 15:47:08 +08:00 committed by GitHub
parent 75fde484ba
commit 33c6d26f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ func TestSetBytes(t *testing.T) {
} }
continue continue
} }
if err == nil && tt.fail { if tt.fail {
t.Errorf("%d: unexpected success", i) t.Errorf("%d: unexpected success", i)
continue continue
} }