Commit b53631fba4f93f901e325267c230dc8f2ea06f91
Handle single pack case
Charles Lehner committed on 10/13/2016, 5:55:00 PMParent: 38e552a3d211d4c5de879ded2133b74392cff52c
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -108,8 +108,10 @@ | |||
108 | 108 … | } | |
109 | 109 … | ||
110 | 110 … | module.exports = function concatPacks(packs) { | |
111 | 111 … | /* packs: [{read: source, numObjects: int}] */ | |
112 … | + if (packs.length === 1) return packs[0].read | ||
113 … | + | ||
112 | 114 … | var checksum = crypto.createHash('sha1') | |
113 | 115 … | var packI = 0 | |
114 | 116 … | var state = 'begin' | |
115 | 117 … |
Built with git-ssb-web