From 0b4675039c036e541f2c24a312689456e773e8db Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 30 Oct 2018 17:55:34 +0100 Subject: [PATCH] fix: pin.ls ignored opts when hash was present (#875) Solves problem described in https://github.com/ipfs-shipyard/ipfs-companion/issues/360#issuecomment-427525801 License: MIT Signed-off-by: Marcin Rataj --- src/pin/ls.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pin/ls.js b/src/pin/ls.js index 91db49f15..6348dfe89 100644 --- a/src/pin/ls.js +++ b/src/pin/ls.js @@ -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,