We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d9e2d1 commit 77515e1Copy full SHA for 77515e1
lib/config.module.ts
@@ -88,7 +88,7 @@ export class ConfigModule {
88
}
89
90
const isConfigToLoad = options.load && options.load.length;
91
- const configFactory = options.load ? await Promise.all(options.load.map((configFactory) => configFactory)) : [];
+ const configFactory = await Promise.all(options.load || []);
92
const providers = configFactory
93
.map(factory =>
94
createConfigProvider(factory as ConfigFactory & ConfigFactoryKeyHost),
0 commit comments