Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function all(stream, cb) {
pull(stream, pull.collect(cb))
}
function all (stream, cb) {
pull(stream, pull.collect(cb))
}
function all(stream, cb) {
if (cb) return pull(stream, pull.collect(cb))
else return function (cb) {
pull(stream, pull.collect(cb))
}
}
function getBlogs (options, cb) {
if (typeof options === 'function') {
cb = options
options = {}
}
pull(
readBlogs(options),
pull.collect(cb)
)
}
function all (stream, cb) {
return pull(stream, pull.collect(cb))
}