mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 01:40:13 +00:00
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:
commit
2ccc7292e7
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user