fix: rename the local variable NluPenaltyFactor to camelCase

This commit is contained in:
medchedli 2025-06-13 18:58:10 +01:00
parent b8b961c94d
commit 6e97b7d4e3

View File

@ -117,15 +117,15 @@ export class BlockService extends BaseService<
*/ */
private async getPenaltyFactor(): Promise<number> { private async getPenaltyFactor(): Promise<number> {
const settings = await this.settingService.getSettings(); const settings = await this.settingService.getSettings();
const NluPenaltyFactor = const nluPenaltyFactor =
settings.chatbot_settings?.default_nlu_penalty_factor; settings.chatbot_settings?.default_nlu_penalty_factor;
if (NluPenaltyFactor == null) { if (nluPenaltyFactor == null) {
this.logger.warn( this.logger.warn(
`The NLU penalty factor has reverted to its default fallback value of: ${FALLBACK_DEFAULT_NLU_PENALTY_FACTOR}`, `The NLU penalty factor has reverted to its default fallback value of: ${FALLBACK_DEFAULT_NLU_PENALTY_FACTOR}`,
); );
} }
return NluPenaltyFactor ?? FALLBACK_DEFAULT_NLU_PENALTY_FACTOR; return nluPenaltyFactor ?? FALLBACK_DEFAULT_NLU_PENALTY_FACTOR;
} }
/** /**