Skip to content

Commit 7982358

Browse files
authored
Merge pull request #2252 from varshaprasad96/fix-bug/cache
🐛 fix a bug in multinamespaced cache implementation
2 parents 3b0376c + 83cc439 commit 7982358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cache/multi_namespace_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func (c *multiNamespaceCache) WaitForCacheSync(ctx context.Context) bool {
197197
func (c *multiNamespaceCache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error {
198198
isNamespaced, err := apiutil.IsObjectNamespaced(obj, c.Scheme, c.RESTMapper)
199199
if err != nil {
200-
return nil //nolint:nilerr
200+
return err
201201
}
202202

203203
if !isNamespaced {

0 commit comments

Comments
 (0)