Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
want: function (hash, cb) {
if(!isHash(hash)) return cb(new Error('not a hash:' + hash))
blobs.has(hash, function (_, has) {
if(has) return cb()
queue(hash, cb)
})
},
pull.drain(function (data) {
var hash = data.dest
if(isHash(hash))
blobs.has(hash, function (_, has) {
if(!has) queue(hash)
})
})
)