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

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
gitwithuli
2026-02-16 23:50:53 +01:00
committed by Peter Steinberger
co-authored by Claude Opus 4.6
parent 304bfefaf9
commit c89eb351ea
+2 -8
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}`);
}
}
}