Skip to content

Commit 77515e1

Browse files
Update lib/config.module.ts
Co-authored-by: Micael Levi L. Cavalcante <[email protected]>
1 parent 8d9e2d1 commit 77515e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class ConfigModule {
8888
}
8989

9090
const isConfigToLoad = options.load && options.load.length;
91-
const configFactory = options.load ? await Promise.all(options.load.map((configFactory) => configFactory)) : [];
91+
const configFactory = await Promise.all(options.load || []);
9292
const providers = configFactory
9393
.map(factory =>
9494
createConfigProvider(factory as ConfigFactory & ConfigFactoryKeyHost),

0 commit comments

Comments
 (0)