mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Minor cleanup in cacher
This commit is contained in:
parent
2bb77a13b1
commit
c0c925f6fe
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user