Minor cleanup in cacher

This commit is contained in:
Wojciech Tyczyński 2022-12-22 11:44:18 +01:00
parent 2bb77a13b1
commit c0c925f6fe

View File

@ -659,11 +659,6 @@ func (c *Cacher) GetList(ctx context.Context, key string, opts storage.ListOptio
return c.storage.GetList(ctx, key, opts, listObj)
}
match := opts.ResourceVersionMatch
if match != metav1.ResourceVersionMatchNotOlderThan && match != "" {
return fmt.Errorf("unknown ResourceVersionMatch value: %v", match)
}
// If resourceVersion is specified, serve it from cache.
// It's guaranteed that the returned value is at least that
// fresh as the given resourceVersion.