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

Commit 5d080c0

Browse files
author
Alan Shaw
authored
fix: double callback in object.links for cbor data (#2111)
Thanks @hugomrdias
1 parent 37903ad commit 5d080c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ module.exports = function object (self) {
333333
if (cid.codec === 'dag-cbor') {
334334
const links = findLinks(result)
335335

336-
callback(null, links)
336+
return callback(null, links)
337337
}
338338

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

0 commit comments

Comments
 (0)