From a7e153e25ed1bf892b77eb5b5bc3555c7e2c700c Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 14 Apr 2020 19:31:37 +0800 Subject: [PATCH] refactor: format --- lib/routes/github/contributors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++;