fix(#2090): resolve lint — drop unnecessary type assertion + unused vars
This commit is contained in:
@@ -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 : '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user