Switch to an arrow function

This commit is contained in:
Benjamin 2017-10-23 13:45:02 -05:00
parent 1edbfcb2e5
commit a025c4265a
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ const cheerio = require("cheerio");
axios.get(`https://github.com/${options.user}`)
.then(generate)
.catch(function (err) {
return
});
.catch(() => {});
function generate(res) {
console.log(`<svg id="github-activity" width="${53 * options.size}" height="${7 * (options.size)}">`);