0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

[ci] format

This commit is contained in:
Arsh 2024-01-30 17:17:06 +00:00 committed by astrobot-houston
parent a40a0ff588
commit 70ae19d500

View file

@ -456,8 +456,8 @@ function getUrlForPath(
pathname: string,
base: string,
origin: string,
format: AstroConfig["build"]["format"],
trailingSlash: AstroConfig["trailingSlash"],
format: AstroConfig['build']['format'],
trailingSlash: AstroConfig['trailingSlash'],
routeType: RouteType
): URL {
/**
@ -465,7 +465,7 @@ function getUrlForPath(
* pathname: /, /foo
* base: /
*/
const ending = format === 'directory' ? trailingSlash === 'never' ? '' : '/' : '.html';
const ending = format === 'directory' ? (trailingSlash === 'never' ? '' : '/') : '.html';
let buildPathname: string;
if (pathname === '/' || pathname === '') {
buildPathname = base;