aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/cache/object_lru.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/cache/object_lru.go')
-rw-r--r--plumbing/cache/object_lru.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/plumbing/cache/object_lru.go b/plumbing/cache/object_lru.go
index 31c0202..53d8b02 100644
--- a/plumbing/cache/object_lru.go
+++ b/plumbing/cache/object_lru.go
@@ -48,14 +48,12 @@ func (c *ObjectLRU) Put(obj plumbing.EncodedObject) {
oldObj := ee.Value.(plumbing.EncodedObject)
// in this case objSize is a delta: new size - old size
objSize -= FileSize(oldObj.Size())
-
c.ll.MoveToFront(ee)
ee.Value = obj
} else {
if objSize > c.MaxSize {
return
}
-
ee := c.ll.PushFront(obj)
c.cache[key] = ee
}