From df26aa220b8b233dd316f06c646d343db5ceb6ce Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 10 Aug 2022 20:24:40 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/app/index.ts | 2 +- packages/astro/src/core/app/node.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index fc03d333c..d8b003b52 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -83,7 +83,7 @@ export class App { } // Use the 404 status code for 404.astro components - if(routeData.route === '/404') { + if (routeData.route === '/404') { defaultStatus = 404; } diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 95e47a52c..801ede4c9 100644 --- a/packages/astro/src/core/app/node.ts +++ b/packages/astro/src/core/app/node.ts @@ -44,10 +44,16 @@ export class NodeApp extends App { }); return reqBodyComplete.then(() => { - return super.render(req instanceof Request ? req : createRequestFromNodeRequest(req, body), routeData); + return super.render( + req instanceof Request ? req : createRequestFromNodeRequest(req, body), + routeData + ); }); } - return super.render(req instanceof Request ? req : createRequestFromNodeRequest(req), routeData); + return super.render( + req instanceof Request ? req : createRequestFromNodeRequest(req), + routeData + ); } }