From abcee7c957afb9e73fc65144054152b5d6a7a808 Mon Sep 17 00:00:00 2001
From: natemoo-re <natemoo-re@users.noreply.github.com>
Date: Fri, 15 Apr 2022 19:16:54 +0000
Subject: [PATCH] [ci] format

---
 packages/astro/src/core/routing/params.ts     | 20 ++++++++-----------
 .../astro/test/astro-get-static-paths.test.js |  4 ++--
 2 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/packages/astro/src/core/routing/params.ts b/packages/astro/src/core/routing/params.ts
index 98071e0698..e70c4aec96 100644
--- a/packages/astro/src/core/routing/params.ts
+++ b/packages/astro/src/core/routing/params.ts
@@ -29,17 +29,13 @@ export function getParams(array: string[]) {
  */
 export function stringifyParams(params: Params) {
 	// validate parameter values then stringify each value
-	const validatedParams = Object.entries(params)
-		.reduce((acc, next) => {
-			validateGetStaticPathsParameter(next);
-			const [key, value] = next;
-			acc[key] = `${value}`;
-			return acc;
-		}, {} as Params);
+	const validatedParams = Object.entries(params).reduce((acc, next) => {
+		validateGetStaticPathsParameter(next);
+		const [key, value] = next;
+		acc[key] = `${value}`;
+		return acc;
+	}, {} as Params);
 
 	// Always sort keys before stringifying to make sure objects match regardless of parameter ordering
-	return JSON.stringify(
-		validatedParams,
-		Object.keys(params).sort()
-	);
-}
\ No newline at end of file
+	return JSON.stringify(validatedParams, Object.keys(params).sort());
+}
diff --git a/packages/astro/test/astro-get-static-paths.test.js b/packages/astro/test/astro-get-static-paths.test.js
index c2ae40940f..6301346600 100644
--- a/packages/astro/test/astro-get-static-paths.test.js
+++ b/packages/astro/test/astro-get-static-paths.test.js
@@ -69,5 +69,5 @@ describe('getStaticPaths - route params type validation', () => {
 		// route provided with { params: { year: 2022, slug: "post-2" }}
 		const res = await fixture.fetch('/blog/2022/post-2');
 		expect(res.status).to.equal(200);
-	})
-})
\ No newline at end of file
+	});
+});