From af1af9faeec967ff79009721b6bbe09350bc085b Mon Sep 17 00:00:00 2001 From: Erika Date: Mon, 15 Apr 2024 09:07:35 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/assets/endpoint/generic.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/astro/src/assets/endpoint/generic.ts b/packages/astro/src/assets/endpoint/generic.ts index 5c51f65755..3dd5140cf1 100644 --- a/packages/astro/src/assets/endpoint/generic.ts +++ b/packages/astro/src/assets/endpoint/generic.ts @@ -45,9 +45,7 @@ export const GET: APIRoute = async ({ request }) => { let inputBuffer: ArrayBuffer | undefined = undefined; const isRemoteImage = isRemotePath(transform.src); - const sourceUrl = isRemoteImage - ? new URL(transform.src) - : new URL(transform.src, url.origin); + const sourceUrl = isRemoteImage ? new URL(transform.src) : new URL(transform.src, url.origin); if (isRemoteImage && isRemoteAllowed(transform.src, imageConfig) === false) { return new Response('Forbidden', { status: 403 });