diff --git a/src/commands/doctor-config-flow.ts b/src/commands/doctor-config-flow.ts index a1b156e1b74..2e4b6d3e4fe 100644 --- a/src/commands/doctor-config-flow.ts +++ b/src/commands/doctor-config-flow.ts @@ -571,10 +571,7 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): { const next = structuredClone(cfg); const changes: string[] = []; - const ensureWildcard = ( - account: Record, - prefix: string, - ) => { + const ensureWildcard = (account: Record, prefix: string) => { const dmPolicy = (account.dmPolicy as string | undefined) ?? ((account.dm as Record | undefined)?.policy as string | undefined); @@ -622,10 +619,7 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): { if (accounts && typeof accounts === "object") { for (const [accountName, accountConfig] of Object.entries(accounts)) { if (accountConfig && typeof accountConfig === "object") { - ensureWildcard( - accountConfig, - `channels.${channelName}.accounts.${accountName}`, - ); + ensureWildcard(accountConfig, `channels.${channelName}.accounts.${accountName}`); } } }