Remove unnecessary promiuse usage. (#6585)

This commit is contained in:
Tommaso Sciortino
2025-08-19 15:31:02 -07:00
committed by GitHub
parent 1244ec6954
commit 0cc2a1e7ef
18 changed files with 61 additions and 67 deletions

View File

@@ -10,7 +10,6 @@ import {
AuthType,
Config,
GeminiChat,
ToolRegistry,
logToolCall,
ToolResult,
convertToFunctionResponse,
@@ -366,7 +365,7 @@ class Session {
return errorResponse(new Error('Missing function name'));
}
const toolRegistry: ToolRegistry = await this.config.getToolRegistry();
const toolRegistry = this.config.getToolRegistry();
const tool = toolRegistry.getTool(fc.name as string);
if (!tool) {
@@ -531,7 +530,7 @@ class Session {
const contentLabelsForDisplay: string[] = [];
const ignoredPaths: string[] = [];
const toolRegistry = await this.config.getToolRegistry();
const toolRegistry = this.config.getToolRegistry();
const readManyFilesTool = toolRegistry.getTool('read_many_files');
const globTool = toolRegistry.getTool('glob');