resolve linter issues

This commit is contained in:
David Christofas
2021-02-24 16:24:36 +01:00
parent b8ac8f1ddd
commit a22b7d6844
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func (c *Cache) Store(key string, val interface{}, expiration time.Time) {
c.evict()
}
poolEntry := c.pool.Get()
poolEntry := c.pool.Get() //nolint: ifshort
if mapEntry, loaded := c.entries.LoadOrStore(key, poolEntry); loaded {
entry := mapEntry.(*CacheEntry)
entry.V = val