diff --git a/lib/configuration/nest-configuration.loader.ts b/lib/configuration/nest-configuration.loader.ts index dd6aca4ab..9251a39a3 100644 --- a/lib/configuration/nest-configuration.loader.ts +++ b/lib/configuration/nest-configuration.loader.ts @@ -17,7 +17,9 @@ export class NestConfigurationLoader implements ConfigurationLoader { public async load(name?: string): Promise> { const cacheEntryKey = `${this.reader.constructor.name}:${name}`; const cachedConfig = loadedConfigsCache.get(cacheEntryKey); - if (cachedConfig) return cachedConfig; + if (cachedConfig) { + return cachedConfig; + } let loadedConfig: Required | undefined;