Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored and astrobot-houston committed Jan 30, 2024
1 parent a40a0ff commit 70ae19d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,16 +456,16 @@ 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 {
/**
* Examples:
* 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;
Expand Down

0 comments on commit 70ae19d

Please sign in to comment.