mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -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 =
|
const flag =
|
||||||
this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING];
|
this.experiments?.flags[ExperimentFlags.ENABLE_NUMERICAL_ROUTING];
|
||||||
if (flag?.boolValue !== undefined) {
|
return flag?.boolValue ?? true;
|
||||||
return flag.boolValue;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getClassifierThreshold(): Promise<number | undefined> {
|
async getClassifierThreshold(): Promise<number | undefined> {
|
||||||
|
|||||||
Reference in New Issue
Block a user