fix: satisfy discord gateway lint · openclaw/openclaw@6d4599a
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
File tree
extensions/discord/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -117,7 +117,7 @@ export function resolveDiscordGatewayIntents(params?: ResolveDiscordGatewayInten
|
117 | 117 | |
118 | 118 | function normalizeGatewayInfoTimeoutMs(value: unknown): number | undefined { |
119 | 119 | const numeric = |
120 | | -typeof value === "number" ? value : typeof value === "string" ? Number(value) : NaN; |
| 120 | +typeof value === "number" ? value : typeof value === "string" ? Number(value) : Number.NaN; |
121 | 121 | if (!Number.isFinite(numeric) || numeric <= 0) { |
122 | 122 | return undefined; |
123 | 123 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。