mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
fix: satisfy discord gateway lint
This commit is contained in:
@@ -117,7 +117,7 @@ export function resolveDiscordGatewayIntents(params?: ResolveDiscordGatewayInten
|
||||
|
||||
function normalizeGatewayInfoTimeoutMs(value: unknown): number | undefined {
|
||||
const numeric =
|
||||
typeof value === "number" ? value : typeof value === "string" ? Number(value) : NaN;
|
||||
typeof value === "number" ? value : typeof value === "string" ? Number(value) : Number.NaN;
|
||||
if (!Number.isFinite(numeric) || numeric <= 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user