From 789c942a00fa6f49d87826fd07fc51d954fb6b08 Mon Sep 17 00:00:00 2001 From: kmmiio99o <164557248+kmmiio99o@users.noreply.github.com> Date: Mon, 22 Dec 2025 19:57:36 +0100 Subject: [PATCH] forgot about this I don't know how, but yeah --- src/lib/utils/timings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/timings.ts b/src/lib/utils/timings.ts index 43b1c01..e9f826b 100644 --- a/src/lib/utils/timings.ts +++ b/src/lib/utils/timings.ts @@ -125,7 +125,7 @@ export function wrap any>(name: string, fn: T): T { return res; } finally { // for synchronous returns, ensure timing recorded in finally above won't double-record. - if (!(fn as any).constructor.name === "AsyncFunction") { + if ((fn as any).constructor?.name !== "AsyncFunction") { const duration = Math.max(0, now() - t0); record(name, duration); }