Unverified Commit 137a9f20 authored by Anurag Hazra's avatar Anurag Hazra Committed by GitHub
Browse files

Merge pull request #19 from omidnikrah/patch-1

Use destructuring query assignment
parents 43c49de3 9083ae3e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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");