Unverified Commit 9083ae3e authored by Omid Nikrah's avatar Omid Nikrah Committed by GitHub
Browse files

Use destructuring props assignment

parent 43c49de3
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");