diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /internal/lru/get.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'internal/lru/get.go')
| -rw-r--r-- | internal/lru/get.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/lru/get.go b/internal/lru/get.go index 92196003..81383945 100644 --- a/internal/lru/get.go +++ b/internal/lru/get.go @@ -1,6 +1,8 @@ package lru // Get returns value for key and marks it most-recently-used. +// +//nolint:ireturn func (cache *Cache[K, V]) Get(key K) (V, bool) { elem, ok := cache.items[key] if !ok { |
