diff options
author | kuba-- <kuba@sourced.tech> | 2018-09-17 23:26:45 +0200 |
---|---|---|
committer | kuba-- <kuba@sourced.tech> | 2018-09-17 23:26:45 +0200 |
commit | edfc16e3ea6b0ce2533bacb5f370d042042b4784 (patch) | |
tree | 58a7fb3508e0f7dd637a1e4f62984bfcaa7cb84b /plumbing/cache/buffer_lru.go | |
parent | 4896974b4daf86f53d782c868d408f830f84c294 (diff) | |
download | go-git-edfc16e3ea6b0ce2533bacb5f370d042042b4784.tar.gz |
Remove empty space to trigger windows build.
Signed-off-by: kuba-- <kuba@sourced.tech>
Diffstat (limited to 'plumbing/cache/buffer_lru.go')
-rw-r--r-- | plumbing/cache/buffer_lru.go | 2 |
1 files changed, 0 insertions, 2 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 } |