Skip to content

Commit

Permalink
fix: set profiles option if profiles array not empty (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw authored and hugomrdias committed Jan 16, 2020
1 parent 7dad936 commit 12a2b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipfsd-daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Daemon {
if (opts.emptyRepo) {
args.push('--empty-repo')
}
if (opts.profiles && Array.isArray(opts.profiles)) {
if (Array.isArray(opts.profiles) && opts.profiles.length) {
args.push('--profile', opts.profiles.join(','))
}

Expand Down

0 comments on commit 12a2b6c

Please sign in to comment.