diff --git a/lib/routes/github/contributors.js b/lib/routes/github/contributors.js index 6d84bf7d2..6620f6dc2 100644 --- a/lib/routes/github/contributors.js +++ b/lib/routes/github/contributors.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { try { // Get total page number - const last_page_link = response.headers.link.split(',').find(function(elem) { + const last_page_link = response.headers.link.split(',').find(function (elem) { return elem.includes('"last"'); }); const url_base = last_page_link.match(/<(.*)page=\d*/)[1]; @@ -63,7 +63,7 @@ module.exports = async (ctx) => { let index = 0; // Generate RSS - data.forEach(function(item) { + data.forEach(function (item) { const time = new Date(); time.setMinutes(time.getMinutes() - index); index++;