mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 23:01:24 +00:00
fix: clean agents lint warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user