refactor: simplify getNumericalRoutingEnabled using nullish coalescing

This commit is contained in:
Sehoon Shon
2026-03-11 01:23:11 -04:00
parent 30b6e987c6
commit cdc8db24ae

View File

@@ -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<number | undefined> {