Skip to content

Commit 26d0f84

Browse files
authored
Merge pull request kubernetes#94476 from habibrosyad/patch-92402-12
fix vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning staticcheck
2 parents 4ad3018 + 19060e3 commit 26d0f84

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ vendor/k8s.io/apimachinery/pkg/api/meta
1414
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation
1515
vendor/k8s.io/apimachinery/pkg/runtime
1616
vendor/k8s.io/apimachinery/pkg/runtime/serializer/json
17-
vendor/k8s.io/apimachinery/pkg/runtime/serializer/versioning
1817
vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy
1918
vendor/k8s.io/apimachinery/pkg/util/net
2019
vendor/k8s.io/apimachinery/pkg/util/sets/types

staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,15 +319,6 @@ func (s *mockSerializer) Identifier() runtime.Identifier {
319319
return runtime.Identifier("mock")
320320
}
321321

322-
type mockCreater struct {
323-
err error
324-
obj runtime.Object
325-
}
326-
327-
func (c *mockCreater) New(kind schema.GroupVersionKind) (runtime.Object, error) {
328-
return c.obj, c.err
329-
}
330-
331322
type mockTyper struct {
332323
gvks []schema.GroupVersionKind
333324
unversioned bool

0 commit comments

Comments
 (0)