Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: make ping not mix errors with responses (#883)
Browse files Browse the repository at this point in the history
* fix: make ping not mix errors with responses

* chore: update interface-ipfs-core

* chore: update interface-ipfs-core
  • Loading branch information
daviddias authored Oct 31, 2018
1 parent f382ac0 commit 80725f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"eslint-plugin-react": "^7.11.1",
"go-ipfs-dep": "~0.4.17",
"gulp": "^3.9.1",
"interface-ipfs-core": "~0.83.0",
"interface-ipfs-core": "~0.84.2",
"ipfsd-ctl": "~0.39.5",
"pull-stream": "^3.6.9",
"stream-equal": "^1.1.1"
Expand Down
7 changes: 6 additions & 1 deletion src/ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ module.exports = (arg) => {
cb()
}
}),
(err) => callback(err, responses)
(err) => {
if (err) {
return callback(err)
}
callback(null, responses)
}
)
}

Expand Down

0 comments on commit 80725f2

Please sign in to comment.