From ee26b68fe17505e6872e1a3b43384c6138f25da9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 31 Jan 2026 07:59:01 +0000 Subject: [PATCH] fix: lint cleanups --- src/agents/tools/browser-tool.ts | 2 +- src/auto-reply/reply/commands-subagents.ts | 4 +++- src/discord/resolve-channels.ts | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/agents/tools/browser-tool.ts b/src/agents/tools/browser-tool.ts index 6f37a7855..575ca4609 100644 --- a/src/agents/tools/browser-tool.ts +++ b/src/agents/tools/browser-tool.ts @@ -152,7 +152,7 @@ async function callBrowserProxy(params: { if (!parsed || typeof parsed !== "object" || !("result" in parsed)) { throw new Error("browser proxy failed"); } - return parsed as BrowserProxyResult; + return parsed; } async function persistProxyFiles(files: BrowserProxyFile[] | undefined) { diff --git a/src/auto-reply/reply/commands-subagents.ts b/src/auto-reply/reply/commands-subagents.ts index 105feadcf..12e15140a 100644 --- a/src/auto-reply/reply/commands-subagents.ts +++ b/src/auto-reply/reply/commands-subagents.ts @@ -384,7 +384,9 @@ export const handleSubagentsCommand: CommandHandler = async (params, allowTextCo timeoutMs: 10_000, }); const responseRunId = typeof response?.runId === "string" ? response.runId : undefined; - if (responseRunId) runId = responseRunId; + if (responseRunId) { + runId = responseRunId; + } } catch (err) { const messageText = err instanceof Error ? err.message : typeof err === "string" ? err : "error"; diff --git a/src/discord/resolve-channels.ts b/src/discord/resolve-channels.ts index ce1bdea17..9246a9b40 100644 --- a/src/discord/resolve-channels.ts +++ b/src/discord/resolve-channels.ts @@ -116,7 +116,9 @@ async function fetchChannel( channelId: string, ): Promise { const raw = await fetchDiscord(`/channels/${channelId}`, token, fetcher); - if (!raw || typeof raw.guild_id !== "string" || typeof raw.id !== "string") return null; + if (!raw || typeof raw.guild_id !== "string" || typeof raw.id !== "string") { + return null; + } return { id: raw.id, name: typeof raw.name === "string" ? raw.name : "",