From 9b97e0dd87ee862c4afceaf910caf5f09a6b421c Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Sun, 20 Jun 2021 14:32:23 -0400 Subject: [PATCH] redundant variable --- server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.js b/server.js index 06d2c9b3..7753165c 100644 --- a/server.js +++ b/server.js @@ -139,8 +139,7 @@ app.get('/download/:id', asyncHandler(async (req, res)=>{ 'Content-Type' : 'text/plain', 'Content-Disposition' : `attachment; filename="${fileName}.txt"` }); - const text = brew.text; - res.status(200).send(text); + res.status(200).send(brew.text); })); //User Page