From c047759558c0f547373af8e1c508cac2be8e3ddf Mon Sep 17 00:00:00 2001 From: Leon Zandman Date: Fri, 20 Mar 2026 20:04:19 +0100 Subject: [PATCH] Fix linting. --- tests/lib/wasmFetchPolyfill.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/lib/wasmFetchPolyfill.mjs b/tests/lib/wasmFetchPolyfill.mjs index 6ec6308d..cc1a6a39 100644 --- a/tests/lib/wasmFetchPolyfill.mjs +++ b/tests/lib/wasmFetchPolyfill.mjs @@ -13,9 +13,11 @@ import { readFile } from "fs/promises"; if (globalThis.fetch) { const originalFetch = globalThis.fetch; globalThis.fetch = async function patchedFetch(url, options) { - const urlStr = typeof url === "string" ? url - : url instanceof URL ? url.href - : String(url); + const urlStr = typeof url === "string" ? + url : + url instanceof URL ? + url.href : + String(url); // Intercept bare filesystem paths (absolute POSIX or Windows) if (urlStr.startsWith("/") || /^[A-Za-z]:[/\\]/.test(urlStr)) { const buffer = await readFile(urlStr);