fix: clean agents lint warnings

This commit is contained in:
Peter Steinberger
2026-01-07 10:13:03 +01:00
parent 7973fd4caf
commit 94d3a9742b
3 changed files with 3 additions and 2 deletions

View File

@@ -218,7 +218,7 @@ export function pruneAgentConfig(
removedAllow: number;
} {
const id = normalizeAgentId(agentId);
const agents = { ...(cfg.routing?.agents ?? {}) };
const agents = { ...cfg.routing?.agents };
delete agents[id];
const nextAgents = Object.keys(agents).length > 0 ? agents : undefined;