From 071c329f25863bf0d31ebadae9f9f48f6624c1c5 Mon Sep 17 00:00:00 2001 From: Arsh Date: Mon, 12 Feb 2024 15:26:57 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/endpoint.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/runtime/server/endpoint.ts b/packages/astro/src/runtime/server/endpoint.ts index 66454fb69d..9b5f3e40e0 100644 --- a/packages/astro/src/runtime/server/endpoint.ts +++ b/packages/astro/src/runtime/server/endpoint.ts @@ -38,10 +38,12 @@ export async function renderEndpoint( // 404. Should be handled by 404.astro route if possible. return new Response(null, { status: 404 }); } - if (typeof handler !== "function") { + if (typeof handler !== 'function') { logger.error( 'router', - `The route "${url.pathname}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.` + `The route "${ + url.pathname + }" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.` ); return new Response(null, { status: 500 }); }