From a0e4834213d2352bc32ffe62a5f227cb7d738bdb Mon Sep 17 00:00:00 2001 From: grumbulon Date: Mon, 4 Apr 2022 21:34:45 -0400 Subject: [PATCH] Removed unnecessary main function -> getFromBooru --- src/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index d362035..aa4a869 100644 --- a/src/index.js +++ b/src/index.js @@ -6,14 +6,10 @@ const port = 3000; app.get("/", (req, res) => { res.set("Cache-Control", "no-store"); - main(); + getFromBooru(); res.sendFile("src/public/assets/waifu.png", { root: "." }); }); app.listen(port, () => { console.log(`listening on port ${port}`); }); - -function main() { - getFromBooru(); -}