Skip to content

Commit 45b9127

Browse files
committed
chore: resolve differently
1 parent 43fc033 commit 45b9127

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎bin/utils/convert-argv.js‎

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

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

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

0 commit comments

Comments
 (0)