git ssb

2+

Dominic / pull-stream



Commit fb4e1d87afd52b57bc2b3b930addc0fe05d9f047

pull.values(nullish) should return an empty stream

Dominic Tarr committed on 6/2/2015, 11:56:39 AM
Parent: 1faaf1186085c4a51d670ff37de52f9c136420d8

Files changed

sources.jschanged
sources.jsView
@@ -17,8 +17,12 @@
1717 }
1818
1919 var values = exports.values = exports.readArray =
2020 function (array) {
21+ if(!array)
22+ return function (abort, cb) {
23+ return cb(abort || true)
24+ }
2125 if(!Array.isArray(array))
2226 array = Object.keys(array).map(function (k) {
2327 return array[k]
2428 })

Built with git-ssb-web