Skip to content

Commit 45b9127

Browse files
committedAug 16, 2019
chore: resolve differently
1 parent 43fc033 commit 45b9127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bin/utils/convert-argv.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ module.exports = function(...args) {
148148
}
149149

150150
// process Promise
151-
if (options && typeof options.then === "function") {
151+
if (typeof options.then === "function") {
152152
return options.then(processConfiguredOptions);
153153
}
154154

155155
// process ES6 default
156-
if (options && typeof options === "object" && typeof options.default === "object") {
156+
if (typeof options === "object" && typeof options.default === "object") {
157157
return processConfiguredOptions(options.default);
158158
}
159159

0 commit comments

Comments
 (0)
Please sign in to comment.