Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/vfs/zip/lru_cache.go')
-rw-r--r--internal/vfs/zip/lru_cache.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/vfs/zip/lru_cache.go b/internal/vfs/zip/lru_cache.go
index 29aa26e0..01d16d67 100644
--- a/internal/vfs/zip/lru_cache.go
+++ b/internal/vfs/zip/lru_cache.go
@@ -23,12 +23,10 @@ func newLruCache(op string, maxEntries uint32, duration time.Duration) *lruCache
metrics.ZipCachedEntries.WithLabelValues(op).Dec()
})
- c := &lruCache{
+ return &lruCache{
cache: ccache.New(configuration),
duration: duration,
}
-
- return c
}
func (c *lruCache) findOrFetch(namespace, key string, fetchFn func() (interface{}, error)) (interface{}, error) {