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

Commit

Permalink
fix: double callback in object.links for cbor data (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored May 28, 2019
1 parent 37903ad commit 5d080c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ module.exports = function object (self) {
if (cid.codec === 'dag-cbor') {
const links = findLinks(result)

callback(null, links)
return callback(null, links)
}

callback(new Error(`Cannot resolve links from codec ${cid.codec}`))
Expand Down

0 comments on commit 5d080c0

Please sign in to comment.