Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Apr 26, 2016
1 parent 06b2b9b commit 842090b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"bs58": "^3.0.0",
"detect-node": "^2.0.3",
"ipfs-blocks": "^0.1.0",
"ipfs-blocks": "^0.2.3",
"is-ipfs": "^0.2.0",
"multihashing": "^0.2.0",
"protocol-buffers": "^3.1.4",
Expand Down
4 changes: 3 additions & 1 deletion src/dag-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ function DAGService (blockService) {
this.getWith = function (key, callback) {
const formatted = typeof key === 'string' ? new Buffer(base58.decode(key)) : key
this.bs.getBlock(formatted, (err, block) => {
if (err) { return callback(err) }
if (err) {
return callback(err)
}
var node = new DAGNode()
node.unMarshal(block.data)
return callback(null, node)
Expand Down

0 comments on commit 842090b

Please sign in to comment.