aboutsummaryrefslogtreecommitdiff
path: root/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.go')
-rw-r--r--repo.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/repo.go b/repo.go
index 0d7ea65..4761c49 100644
--- a/repo.go
+++ b/repo.go
@@ -577,14 +577,11 @@ func (r *Repo) encodeTempChunks(prev BufferedChunk, curr BufferedChunk, version
c, success := r.encodeTempChunk(tmp, version, last, storeQueue)
if success {
return []Chunk{c}
- } else {
- return []Chunk{prev, curr}
}
- } else {
- prevD, _ := r.encodeTempChunk(prev, version, last, storeQueue)
- currD, _ := r.encodeTempChunk(curr, version, last, storeQueue)
- return []Chunk{prevD, currD}
}
+ prevD, _ := r.encodeTempChunk(prev, version, last, storeQueue)
+ currD, _ := r.encodeTempChunk(curr, version, last, storeQueue)
+ return []Chunk{prevD, currD}
}
func (r *Repo) matchStream(stream io.Reader, version int) []Chunk {