mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:27:39 +00:00
refactor: remove redundant spread fallbacks
This commit is contained in:
@@ -106,10 +106,7 @@ export function deleteAccountFromConfigSection(params: {
|
||||
} as ClawdbotConfig;
|
||||
}
|
||||
|
||||
const nextChannels = { ...(params.cfg.channels ?? {}) } as Record<
|
||||
string,
|
||||
unknown
|
||||
>;
|
||||
const nextChannels = { ...params.cfg.channels } as Record<string, unknown>;
|
||||
delete nextChannels[params.sectionKey];
|
||||
const nextCfg = { ...params.cfg } as ClawdbotConfig;
|
||||
if (Object.keys(nextChannels).length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user