Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: do not pass value on error
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw committed Dec 10, 2018
1 parent 7517949 commit 71b3604
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/components/files-regular/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ module.exports = function (self) {

pull(
self.lsPullStream(ipfsPath, options),
pull.collect(callback)
pull.collect((err, values) => {
if (err) {
return callback(err)
}
callback(null, values)
})
)
})
}

0 comments on commit 71b3604

Please sign in to comment.