Unused error variables in catch block are not allowed (#24487)

This commit is contained in:
Alisa
2026-04-01 21:33:07 -07:00
committed by GitHub
parent 84936dc85d
commit 3344f6849c
92 changed files with 162 additions and 157 deletions
@@ -404,12 +404,12 @@ ${output.result}`;
);
await removeInputBlocker(browserManager, signal);
await removeAutomationOverlay(browserManager, signal);
} catch (_err) {
} catch {
// Ignore errors for individual pages
}
}
}
} catch (_) {
} catch {
// Ignore errors for removing the overlays.
}
}
+1 -1
View File
@@ -1408,7 +1408,7 @@ Important Rules:
Object.assign(args, parsed);
}
return { args };
} catch (_) {
} catch {
return {
args: {},
error: `Failed to parse JSON arguments for tool "${functionCall.name}": ${functionCall.args}. Ensure you provide a valid JSON object.`,