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 : '';
}

View File

@@ -61,7 +61,6 @@ test('PLANNING_PATH_PATTERN matches .planning/ paths on posix + windows separato
});
test('PLANNING_PATH_PATTERN does NOT match non-planning paths', () => {
const other = ['src/planning-utils.ts', 'docs/plan.md', '.planning-readme.txt'];
// .planning-readme.txt must not match (boundary after .planning required)
for (const p of ['src/planning-utils.ts', 'docs/plan.md']) {
assert.ok(!PLANNING_PATH_PATTERN.test(p), `non-planning path must NOT match: ${p}`);

View File

@@ -28,7 +28,6 @@ const { createImperativeAdapter } = require('../gsd-core/bin/lib/adapter-imperat
const {
profileOf,
negotiateHostCapabilities,
shouldFlattenDispatch,
PROFILE_BASELINES,
UNDOCUMENTED,
} = require('../gsd-core/bin/lib/host-integration.cjs');