From 069d4993899637842cb305da6ef114b6a9b3168b Mon Sep 17 00:00:00 2001 From: 72192022 <72192022@vivo.com> Date: Thu, 22 May 2025 10:23:23 +0800 Subject: [PATCH] fix: Fix the misleading naming of return value Config in function loadConfig within file ConfigHandle --- core/config/ConfigHandler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 0d4d81b309..5716b7db08 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -457,14 +457,14 @@ export class ConfigHandler { configLoadInterrupted: true, }; } - const config = await this.currentProfile.loadConfig( + const configResult = await this.currentProfile.loadConfig( this.additionalContextProviders, ); - if (config.errors?.length) { - logger.warn("Errors loading config: ", config.errors); + if (configResult.errors?.length) { + logger.warn("Errors loading config: ", configResult.errors); } - return config; + return configResult; } async openConfigProfile(profileId?: string) {