Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Aug 31, 2023
1 parent d3a6f9f commit a4780e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/routing/params.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { GetStaticPathsItem, Params, RouteData } from '../../@types/astro';
import { validateGetStaticPathsParameter } from './validation.js';
import { trimSlashes } from '../path.js';
import { validateGetStaticPathsParameter } from './validation.js';

/**
* given an array of params like `['x', 'y', 'z']` for
Expand Down Expand Up @@ -34,7 +34,7 @@ export function stringifyParams(params: GetStaticPathsItem['params'], route: Rou
validateGetStaticPathsParameter(next, route.component);
const [key, value] = next;
if (value !== undefined) {
acc[key] = typeof value === 'string' ? trimSlashes(value) : value.toString()
acc[key] = typeof value === 'string' ? trimSlashes(value) : value.toString();
}
return acc;
}, {} as Params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import testAdapter from '../../test-adapter.js';

const root = new URL('../../fixtures/alias/', import.meta.url);
const fileSystem = {
'/src/pages/[...testSlashTrim].astro': `
'/src/pages/[...testSlashTrim].astro': `
---
export function getStaticPaths() {
return [
Expand Down

0 comments on commit a4780e9

Please sign in to comment.