Commit fb4e1d87afd52b57bc2b3b930addc0fe05d9f047
pull.values(nullish) should return an empty stream
Dominic Tarr committed on 6/2/2015, 11:56:39 AMParent: 1faaf1186085c4a51d670ff37de52f9c136420d8
Files changed
sources.js | changed |
sources.js | ||
---|---|---|
@@ -17,8 +17,12 @@ | ||
17 | 17 | } |
18 | 18 | |
19 | 19 | var values = exports.values = exports.readArray = |
20 | 20 | function (array) { |
21 | + if(!array) | |
22 | + return function (abort, cb) { | |
23 | + return cb(abort || true) | |
24 | + } | |
21 | 25 | if(!Array.isArray(array)) |
22 | 26 | array = Object.keys(array).map(function (k) { |
23 | 27 | return array[k] |
24 | 28 | }) |
Built with git-ssb-web