Commit 46d2baae8f82e8765ce3682a4ff96b62a3fdd1d1
Whitespace
Charles Lehner committed on 2/18/2016, 9:12:18 PMParent: a53fb68ffb75c9fc0ff72ebbe56746e37f323cdc
Files changed
lib/pack.js | changed |
lib/pack.js | ||
---|---|---|
@@ -224,14 +224,14 @@ | ||
224 | 224 | |
225 | 225 | function encodeVarInt(typeStr, length, cb) { |
226 | 226 | var type = objectTypeNums[typeStr] |
227 | 227 | // console.error('TYPE', type, typeStr, 'len', length, typeof cb) |
228 | - if (!type) | |
228 | + if (!type) | |
229 | 229 | return cb(new Error("Bad object type " + typeStr)) |
230 | 230 | |
231 | 231 | var vals = [] |
232 | 232 | var b = (type << 4) | (length & 15) |
233 | - for (length >>= 4; length; length >>= 7) { | |
233 | + for (length >>= 4; length; length >>= 7) { | |
234 | 234 | vals.push(b | 0x80) |
235 | 235 | b = length & 0x7f |
236 | 236 | } |
237 | 237 | vals.push(b) |
Built with git-ssb-web