From f839ee9c609dcc14191a8c500741aecf4887884c Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Tue, 13 Feb 2024 10:08:52 -0600 Subject: [PATCH] Slighlty reduce code ig --- pageUpdater.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pageUpdater.js b/pageUpdater.js index 592910a..9c7de5b 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -87,11 +87,10 @@ module.exports = { var data = fs.readFileSync(filePath).toString() if (req.path.includes(".css")) { res.setHeader("Content-Type", "text/css") - res.send(minify.minify(data)) } else { data = converter(data) - res.send(minify.minify(data)) } + res.send(minify.minify(data)) } else { res.status(404).send(`