aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorVincent Tiu <46623413+Invincibot@users.noreply.github.com>2020-08-27 20:10:10 +0800
committerGitHub <noreply@github.com>2020-08-27 20:10:10 +0800
commit8a4e4a1290bc49ea9ac196f96ff5140ddb871eba (patch)
tree98ac363f680c5672c4a5dceace16311f9e82baba /cache
parent2440a208f6e0d18f67f4e022b1c28996ee226af0 (diff)
downloadgit-bug-8a4e4a1290bc49ea9ac196f96ff5140ddb871eba.tar.gz
Update cache/lru_id_cache.go
Co-authored-by: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'cache')
-rw-r--r--cache/lru_id_cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/lru_id_cache.go b/cache/lru_id_cache.go
index f775404f..fda12ca6 100644
--- a/cache/lru_id_cache.go
+++ b/cache/lru_id_cache.go
@@ -13,7 +13,7 @@ type LRUIdCache struct {
}
func NewLRUIdCache() *LRUIdCache {
- // Ignore error here
+ // we can ignore the error here as it would only fail if the size is negative.
cache, _ := lru.New(math.MaxInt32)
return &LRUIdCache{