From 7f99d0de9e1869d8fbb6040eeec4bc12d58ec98a Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Thu, 10 Mar 2022 17:54:39 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/util.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/astro/src/core/util.ts b/packages/astro/src/core/util.ts index 0ec989ed6..1142df590 100644 --- a/packages/astro/src/core/util.ts +++ b/packages/astro/src/core/util.ts @@ -100,19 +100,19 @@ export function viteID(filePath: URL): string { /** An fs utility, similar to `rimraf` or `rm -rf` */ export function removeDir(_dir: URL): void { - const dir = fileURLToPath(_dir); - fs.rmSync(dir, {recursive: true, force: true}); + const dir = fileURLToPath(_dir); + fs.rmSync(dir, { recursive: true, force: true }); } export function emptyDir(_dir: URL, skip?: Set): void { - const dir = fileURLToPath(_dir); - if (!fs.existsSync(dir)) return undefined; - for (const file of fs.readdirSync(dir)) { - if (skip?.has(file)) { - continue; - } - fs.rmSync(path.resolve(dir, file), {recursive: true, force: true}); - } + const dir = fileURLToPath(_dir); + if (!fs.existsSync(dir)) return undefined; + for (const file of fs.readdirSync(dir)) { + if (skip?.has(file)) { + continue; + } + fs.rmSync(path.resolve(dir, file), { recursive: true, force: true }); + } } // Vendored from https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl