Fix staticcheck failures for vendor/k8s.io/apimachinery/pkg/runtime

This commit is contained in:
mozillazg 2021-03-21 19:41:40 +08:00
parent cf3374e434
commit 15688b6342
No known key found for this signature in database
GPG Key ID: 2D9297596BBD72F5
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ pkg/controller/replicaset
pkg/kubelet/dockershim
vendor/k8s.io/apimachinery/pkg/api/apitesting/roundtrip
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation
vendor/k8s.io/apimachinery/pkg/runtime/serializer/json
vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy
vendor/k8s.io/apimachinery/pkg/util/net
vendor/k8s.io/apimachinery/pkg/util/sets/types

View File

@ -38,7 +38,7 @@ func TestSimpleMetaFactoryInterpret(t *testing.T) {
}
// unparsable
gvk, err = factory.Interpret([]byte(`{`))
_, err = factory.Interpret([]byte(`{`))
if err == nil {
t.Errorf("unexpected non-error")
}