0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

redundant variable

This commit is contained in:
Trevor Buckner
2021-06-20 14:32:23 -04:00
committed by GitHub
parent 8e304fa483
commit 9b97e0dd87

View File

@@ -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