From cdc8db24ae4f8c594a191f4e6d4b26e4b878318e Mon Sep 17 00:00:00 2001 From: Sehoon Shon Date: Wed, 11 Mar 2026 01:23:11 -0400 Subject: [PATCH] refactor: simplify getNumericalRoutingEnabled using nullish coalescing --- packages/core/src/config/config.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 5ca13e88d4..9ebff53a84 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -2510,10 +2510,7 @@ export class Config implements McpContext, AgentLoopContext { const flag = this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING]; - if (flag?.boolValue !== undefined) { - return flag.boolValue; - } - return true; + return flag?.boolValue ?? true; } async getClassifierThreshold(): Promise {