From b08b8aa83b3b66ee3a62bb091a467954171caa02 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 17 Dec 2024 14:24:31 -0500 Subject: [PATCH] remove unused params --- packages/astro/src/core/build/static-build.ts | 2 +- .../astro/test/experimental-content-collections-render.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 47ada757e183..afd878f8107e 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -420,7 +420,7 @@ async function cleanServerOutput( files.map(async (filename) => { const url = new URL(filename, out); const map = new URL(url + '.map'); - await Promise.all([fs.promises.rm(url), fs.promises.rm(new URL(map)).catch((e) => {})]); + await Promise.all([fs.promises.rm(url), fs.promises.rm(new URL(map)).catch(() => {})]); }), ); diff --git a/packages/astro/test/experimental-content-collections-render.test.js b/packages/astro/test/experimental-content-collections-render.test.js index 9d78eae6d7a5..8d64c32691c6 100644 --- a/packages/astro/test/experimental-content-collections-render.test.js +++ b/packages/astro/test/experimental-content-collections-render.test.js @@ -126,7 +126,7 @@ if (!isWindows) { let found = true; try { await fixture.readFile('content/manifest.json'); - } catch(e) { + } catch { found = false; } assert.equal(found, false, 'manifest not in dist folder');