mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:18:28 +00:00
fix: lint cleanups
This commit is contained in:
@@ -116,7 +116,9 @@ async function fetchChannel(
|
||||
channelId: string,
|
||||
): Promise<DiscordChannelSummary | null> {
|
||||
const raw = await fetchDiscord<DiscordChannelPayload>(`/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 : "",
|
||||
|
||||
Reference in New Issue
Block a user