Commit c2ab61c1 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

CLI bugfix: ipfs-verify now verifies each CID only once, even if it happens to...

CLI bugfix: ipfs-verify now verifies each CID only once, even if it happens to be provided multiple times
parent 6371b82a
......@@ -639,8 +639,8 @@ let ipfs_get_cids_to_verify = (CIDs) => {
})
// did we get *anything*?
if (CIDs.length > 0) {
// we're done here
resolve(CIDs)
// we're done here; just make sure we're not repeating things
resolve([...new Set(CIDs)])
} else {
reject(new Error(`No valid IPFS address/CIDs found`))
}
......@@ -673,8 +673,8 @@ let ipfs_get_cids_to_verify = (CIDs) => {
debuglog('got a close')
// did we get *anything*?
if (CIDs.length > 0) {
// we're done here
resolve(CIDs)
// we're done here; just make sure we're not repeating things
resolve([...new Set(CIDs)])
} else {
reject(new Error(`No valid IPFS address/CIDs found`))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment