From e2436ab2795cc35e2c8213d247e5d93f484ab394 Mon Sep 17 00:00:00 2001 From: "Marcus R. Brown" Date: Fri, 29 May 2026 23:32:03 -0700 Subject: [PATCH] refactor(gateway): use explicit boolean comparison in timestamp check Align checkTimestamp with the project's strict-boolean convention (`Number.isFinite(parsedMs) === false` rather than negation). No behavior change. --- packages/gateway/src/http/hmac.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gateway/src/http/hmac.ts b/packages/gateway/src/http/hmac.ts index 5da11116..5443ef54 100644 --- a/packages/gateway/src/http/hmac.ts +++ b/packages/gateway/src/http/hmac.ts @@ -73,7 +73,7 @@ export function checkTimestamp( const parsedMs = Date.parse(timestampHeader) // Date.parse returns NaN for unparseable strings - if (!Number.isFinite(parsedMs)) { + if (Number.isFinite(parsedMs) === false) { return {ok: false, reason: 'timestamp_expired'} }