From 42ade0bfa047f418834649e17367b672be7a8e36 Mon Sep 17 00:00:00 2001 From: Gabriel De Andrade <30420087+gabrielelpidio@users.noreply.github.com> Date: Wed, 29 Jul 2026 23:42:27 -0400 Subject: [PATCH] fix(server): order fallback file verification --- apps/server/src/noFollowFile.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/server/src/noFollowFile.ts b/apps/server/src/noFollowFile.ts index 80fa5fe42d..b86f13a533 100644 --- a/apps/server/src/noFollowFile.ts +++ b/apps/server/src/noFollowFile.ts @@ -54,11 +54,9 @@ async function verifyFallbackHandle( handle: NodeFSP.FileHandle, ): Promise { try { - const [canonicalPath, pathInfo, handleInfo] = await Promise.all([ - NodeFS.promises.realpath(absolutePath), - NodeFS.promises.stat(absolutePath), - handle.stat(), - ]); + const handleInfo = await handle.stat(); + const canonicalPath = await NodeFS.promises.realpath(absolutePath); + const pathInfo = await NodeFS.promises.stat(absolutePath); if ( canonicalPath !== absolutePath || pathInfo.dev !== handleInfo.dev ||