diff options
Diffstat (limited to 'internal/lru/peek.go')
| -rw-r--r-- | internal/lru/peek.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/lru/peek.go b/internal/lru/peek.go index 3a308394..8aced931 100644 --- a/internal/lru/peek.go +++ b/internal/lru/peek.go @@ -1,6 +1,8 @@ package lru // Peek returns value for key without changing recency. +// +//nolint:ireturn func (cache *Cache[K, V]) Peek(key K) (V, bool) { elem, ok := cache.items[key] if !ok { |
