Skip to content

Commit

Permalink
chore: resolve differently
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Aug 16, 2019
1 parent 43fc033 commit 45b9127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/utils/convert-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ module.exports = function(...args) {
}

// process Promise
if (options && typeof options.then === "function") {
if (typeof options.then === "function") {
return options.then(processConfiguredOptions);
}

// process ES6 default
if (options && typeof options === "object" && typeof options.default === "object") {
if (typeof options === "object" && typeof options.default === "object") {
return processConfiguredOptions(options.default);
}

Expand Down

0 comments on commit 45b9127

Please sign in to comment.