mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 22:51:00 -07:00
refactor: simplify getNumericalRoutingEnabled using nullish coalescing
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user