Skip to content

Commit

Permalink
feat: refactor
Browse files Browse the repository at this point in the history
config
  • Loading branch information
jamesgeorge007 committed Sep 29, 2019
1 parent d002214 commit 16c368f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/groups/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ class ConfigGroup extends GroupHelper {
if (configOptions.length > 0) {
this.opts['options'] = configOptions;
}
else if(typeof configOptions === 'function') {
else if (typeof configOptions === 'function') {
const newOptions = await configOptions();
this.opts['options'] = newOptions;
}
else {
if(Array.isArray(configOptions) && !configOptions.length) {
if (Array.isArray(configOptions) && !configOptions.length) {
this.opts['options'] = {};
return;
}
Expand Down

0 comments on commit 16c368f

Please sign in to comment.