Skip to content

Commit

Permalink
fix(add.js): fix paths as string causing unncessary add
Browse files Browse the repository at this point in the history
  • Loading branch information
cckelly committed Dec 19, 2018
1 parent d7a8de2 commit aa49616
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion add.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,18 @@ async function add(opts) {
}

const {
did, paths, password, force, keyringOpts
keyringOpts,
password,
force,
did
} = opts

let { paths } = opts

if ('string' === typeof opts.paths) {
paths = [ opts.paths ]
}

let afs
try {
({ afs } = await create({ did, password, keyringOpts }))
Expand Down

0 comments on commit aa49616

Please sign in to comment.