misc: finally drop 0.18 support

This commit is contained in:
Xylight committed 2024-07-07 19:02:43 -07:00
1 parent a14b5786ee
commit c6c0236898
1 file changed
+1 -4
+1 -4
View File
@@ -44,10 +44,7 @@ async function customFetch(
} }
} }
const url = toURL(input) const res = await f(input, init)
if (auth && url) url.searchParams.set('auth', auth)
const res = await f(url ?? input, init)
if (!res.ok) error(res.status, await res.text()) if (!res.ok) error(res.status, await res.text())
return res return res
} }