0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-17 22:44:24 -05:00

[ci] format

This commit is contained in:
Emanuele Stoppa 2024-05-16 13:44:20 +00:00 committed by astrobot-houston
parent 16f12e426e
commit 87f36d4074

View file

@ -22,10 +22,7 @@ export function requestHasLocale(locales: Locales) {
export function requestIs404Or500(request: Request, base = '') {
const url = new URL(request.url);
return (
url.pathname.startsWith(`${base}/404`) ||
url.pathname.startsWith(`${base}/500`)
);
return url.pathname.startsWith(`${base}/404`) || url.pathname.startsWith(`${base}/500`);
}
// Checks if the pathname has any locale
export function pathHasLocale(path: string, locales: Locales): boolean {