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

Commit

Permalink
fix: pin.ls ignored opts when hash was present (#875)
Browse files Browse the repository at this point in the history
Solves problem described in
ipfs/ipfs-companion#360 (comment)

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel authored and Alan Shaw committed Oct 30, 2018
1 parent 9eaaea3 commit 0b46750
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pin/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ module.exports = (send) => {
}
if (typeof opts === 'function') {
callback = opts
opts = null
}
if (hash && hash.type) {
opts = hash
hash = null
} else {
opts = null
}

send({
path: 'pin/ls',
args: hash,
Expand Down

0 comments on commit 0b46750

Please # to comment.