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

fix: pin.ls ignored opts when hash was present #875

Merged
merged 1 commit into from
Oct 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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