fix: remove async from methods without await in vault-tools.ts

This commit is contained in:
2025-12-16 13:45:30 -05:00
parent e1e05e82ae
commit 3b50754386
2 changed files with 10 additions and 10 deletions

View File

@@ -577,7 +577,7 @@ export class ToolRegistry {
break;
}
case "get_vault_info":
result = await this.vaultTools.getVaultInfo();
result = this.vaultTools.getVaultInfo();
break;
case "list": {
const a = args as { path?: string; recursive?: boolean; includes?: string[]; excludes?: string[]; only?: 'files' | 'directories' | 'any'; limit?: number; cursor?: string; withFrontmatterSummary?: boolean; includeWordCount?: boolean };
@@ -601,7 +601,7 @@ export class ToolRegistry {
}
case "exists": {
const a = args as { path: string };
result = await this.vaultTools.exists(a.path);
result = this.vaultTools.exists(a.path);
break;
}
case "read_excalidraw": {
@@ -629,7 +629,7 @@ export class ToolRegistry {
}
case "resolve_wikilink": {
const a = args as { sourcePath: string; linkText: string };
result = await this.vaultTools.resolveWikilink(a.sourcePath, a.linkText);
result = this.vaultTools.resolveWikilink(a.sourcePath, a.linkText);
break;
}
case "backlinks": {