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 285cfa4 commit 21bda67Copy full SHA for 21bda67
lib/src/Program.js
@@ -27,20 +27,18 @@ class Program {
27
*
28
* @return {Promise}
29
*/
30
- init() {
31
- return this._getEnvOptions()
32
- .then(options => {
33
- this.options = this._filterObject(this._camelCaseObjectKeys(
34
- Object.assign(
35
- {},
36
- this.defaults,
37
- Object.assign({}, ...[].concat(options)),
38
- this.options
39
- )
40
- ));
41
-
42
- return this.options;
43
- });
+ async init() {
+ const options = await this._getEnvOptions();
+ this.options = this._filterObject(this._camelCaseObjectKeys(
+ Object.assign(
+ {},
+ this.defaults,
+ Object.assign({}, ...[].concat(options)),
+ this.options
+ )
+ ));
+
+ return this.options;
44
}
45
46
/**
0 commit comments