Merge pull request #19 from omidnikrah/patch-1

Use destructuring query assignment
This commit is contained in:
Anurag Hazra 2020-07-10 22:47:32 +05:30 committed by GitHub
commit 137a9f2038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,11 +135,7 @@ const renderSVG = (stats, options) => {
};
module.exports = async (req, res) => {
const username = req.query.username;
const hide = req.query.hide;
const hide_border = req.query.hide_border;
const show_icons = req.query.show_icons;
const line_height = req.query.line_height;
const { username, hide, hide_border, show_icons, line_height } = req.query;
let stats;
res.setHeader("Content-Type", "image/svg+xml");