aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorkuba-- <kuba@sourced.tech>2018-09-17 23:26:45 +0200
committerkuba-- <kuba@sourced.tech>2018-09-17 23:26:45 +0200
commitedfc16e3ea6b0ce2533bacb5f370d042042b4784 (patch)
tree58a7fb3508e0f7dd637a1e4f62984bfcaa7cb84b /plumbing
parent4896974b4daf86f53d782c868d408f830f84c294 (diff)
downloadgo-git-edfc16e3ea6b0ce2533bacb5f370d042042b4784.tar.gz
Remove empty space to trigger windows build.
Signed-off-by: kuba-- <kuba@sourced.tech>
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/cache/buffer_lru.go2
-rw-r--r--plumbing/cache/object_lru.go2
2 files changed, 0 insertions, 4 deletions
diff --git a/plumbing/cache/buffer_lru.go b/plumbing/cache/buffer_lru.go
index e86ccb2..acaf195 100644
--- a/plumbing/cache/buffer_lru.go
+++ b/plumbing/cache/buffer_lru.go
@@ -50,14 +50,12 @@ func (c *BufferLRU) Put(key int64, slice []byte) {
oldBuf := ee.Value.(buffer)
// in this case bufSize is a delta: new size - old size
bufSize -= FileSize(len(oldBuf.Slice))
-
c.ll.MoveToFront(ee)
ee.Value = buffer{key, slice}
} else {
if bufSize > c.MaxSize {
return
}
-
ee := c.ll.PushFront(buffer{key, slice})
c.cache[key] = ee
}
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
}