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:
authorKamil Trzciński <ayufan@ayufan.eu>2020-10-08 11:04:54 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2020-10-13 00:13:32 +0300
commit6bcdae98620236e97c9da1ca50bcd8dc837d8bd5 (patch)
treef44ba056cc09058bfa69e9a5ad11a9d5fb8a8c36
parenta4ccdd055c0b532a9aed9887cdc016c363eab15d (diff)
Apply 1 suggestion(s) to 1 file(s)
-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) {