From 15688b6342f6ec8f51149f984d409af25cdedc07 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Sun, 21 Mar 2021 19:41:40 +0800 Subject: [PATCH] Fix staticcheck failures for vendor/k8s.io/apimachinery/pkg/runtime --- hack/.staticcheck_failures | 1 - .../apimachinery/pkg/runtime/serializer/json/meta_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index a8563d0361d..a51d767a699 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -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 diff --git a/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go b/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go index f4e34a22d5d..5c5dda89e66 100644 --- a/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go +++ b/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/meta_test.go @@ -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") }