Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed May 16, 2024
1 parent 16f12e4 commit 87f36d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/astro/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 87f36d4

Please sign in to comment.