[ci] format
This commit is contained in:
parent
714a8399e2
commit
df26aa220b
2 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue