We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43fc033 commit 45b9127Copy full SHA for 45b9127
bin/utils/convert-argv.js
@@ -148,12 +148,12 @@ module.exports = function(...args) {
148
}
149
150
// process Promise
151
- if (options && typeof options.then === "function") {
+ if (typeof options.then === "function") {
152
return options.then(processConfiguredOptions);
153
154
155
// process ES6 default
156
- if (options && typeof options === "object" && typeof options.default === "object") {
+ if (typeof options === "object" && typeof options.default === "object") {
157
return processConfiguredOptions(options.default);
158
159
0 commit comments