Merge pull request #100430 from mozillazg/fix-staticcheck-failed-apimachinery-serializer

Fix staticcheck failures for vendor/k8s.io/apimachinery/pkg/runtime
This commit is contained in:
Kubernetes Prow Robot 2021-04-10 20:29:27 -07:00 committed by GitHub
commit 2ccc7292e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
cluster/images/etcd/migrate
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")
}