style: run oxfmt formatting on doctor-config-flow.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gitwithuli
2026-02-16 16:11:27 -05:00
committed by Peter Steinberger
parent 304bfefaf9
commit c89eb351ea

View File

@@ -571,10 +571,7 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): {
const next = structuredClone(cfg);
const changes: string[] = [];
const ensureWildcard = (
account: Record<string, unknown>,
prefix: string,
) => {
const ensureWildcard = (account: Record<string, unknown>, prefix: string) => {
const dmPolicy =
(account.dmPolicy as string | undefined) ??
((account.dm as Record<string, unknown> | 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}`);
}
}
}