fix(#2090): resolve lint — drop unnecessary type assertion + unused vars

This commit is contained in:
Tom Boucher
2026-07-09 14:43:46 -04:00
parent f76f117ff9
commit 9e7f80ea69
3 changed files with 1 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ function collectPathValues(root: unknown): string[] {
function resolveToolName(tool: BeforeToolPayload['tool']): string {
if (!tool) return '';
if (typeof tool === 'string') return tool;
const name = (tool as { name?: unknown }).name;
const name = tool.name;
return typeof name === 'string' ? name : '';
}