Skip to content

Commit

Permalink
Merge pull request #2256 from qmloong/qmloong/fix-type-print
Browse files Browse the repository at this point in the history
🐛 type print will always <nil>
  • Loading branch information
k8s-ci-robot committed Mar 30, 2023
2 parents 7982358 + c00d5d0 commit b2c5e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cache/internal/cache_reader.go
Expand Up @@ -27,9 +27,9 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/tools/cache"
"sigs.k8s.io/controller-runtime/pkg/internal/field/selector"

"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/internal/field/selector"
)

// CacheReader is a client.Reader.
Expand Down Expand Up @@ -147,7 +147,7 @@ func (c *CacheReader) List(_ context.Context, out client.ObjectList, opts ...cli
}
obj, isObj := item.(runtime.Object)
if !isObj {
return fmt.Errorf("cache contained %T, which is not an Object", obj)
return fmt.Errorf("cache contained %T, which is not an Object", item)
}
meta, err := apimeta.Accessor(obj)
if err != nil {
Expand Down

0 comments on commit b2c5e38

Please sign in to comment.