Skip to content

Commit 842090b

Browse files
committed
update deps
1 parent 06b2b9b commit 842090b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"bs58": "^3.0.0",
3434
"detect-node": "^2.0.3",
35-
"ipfs-blocks": "^0.1.0",
35+
"ipfs-blocks": "^0.2.3",
3636
"is-ipfs": "^0.2.0",
3737
"multihashing": "^0.2.0",
3838
"protocol-buffers": "^3.1.4",

src/dag-service.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ function DAGService (blockService) {
4848
this.getWith = function (key, callback) {
4949
const formatted = typeof key === 'string' ? new Buffer(base58.decode(key)) : key
5050
this.bs.getBlock(formatted, (err, block) => {
51-
if (err) { return callback(err) }
51+
if (err) {
52+
return callback(err)
53+
}
5254
var node = new DAGNode()
5355
node.unMarshal(block.data)
5456
return callback(null, node)

0 commit comments

Comments
 (0)