From 304bfefaf91f32677ae216361f795d3e6b68200a Mon Sep 17 00:00:00 2001 From: gitwithuli Date: Mon, 16 Feb 2026 15:55:10 -0500 Subject: [PATCH] chore: remove unused channelName parameter from ensureWildcard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses review feedback — channelName was declared but only prefix was used for change messages. Co-Authored-By: Claude Opus 4.6 --- src/commands/doctor-config-flow.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/doctor-config-flow.ts b/src/commands/doctor-config-flow.ts index dc18ea948..a1b156e1b 100644 --- a/src/commands/doctor-config-flow.ts +++ b/src/commands/doctor-config-flow.ts @@ -572,7 +572,6 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): { const changes: string[] = []; const ensureWildcard = ( - channelName: string, account: Record, prefix: string, ) => { @@ -616,7 +615,7 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): { } // Check the top-level channel config - ensureWildcard(channelName, channelConfig, `channels.${channelName}`); + ensureWildcard(channelConfig, `channels.${channelName}`); // Check per-account configs (e.g. channels.discord.accounts.mybot) const accounts = channelConfig.accounts as Record> | undefined; @@ -624,7 +623,6 @@ function maybeRepairOpenPolicyAllowFrom(cfg: OpenClawConfig): { for (const [accountName, accountConfig] of Object.entries(accounts)) { if (accountConfig && typeof accountConfig === "object") { ensureWildcard( - channelName, accountConfig, `channels.${channelName}.accounts.${accountName}`, );