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

Commit 71b3604

Browse files
author
Alan Shaw
committed
fix: do not pass value on error
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 7517949 commit 71b3604

File tree

1 file changed

+6
-1
lines changed
  • src/core/components/files-regular

1 file changed

+6
-1
lines changed

src/core/components/files-regular/ls.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ module.exports = function (self) {
1414

1515
pull(
1616
self.lsPullStream(ipfsPath, options),
17-
pull.collect(callback)
17+
pull.collect((err, values) => {
18+
if (err) {
19+
return callback(err)
20+
}
21+
callback(null, values)
22+
})
1823
)
1924
})
2025
}

0 commit comments

Comments
 (0)