From cb14668374b2be6792060663418960a9fa02442b Mon Sep 17 00:00:00 2001 From: KotoriK <52659125+KotoriK@users.noreply.github.com> Date: Sun, 10 Jan 2021 21:12:31 +0800 Subject: [PATCH] fix:avoid using comma to separate expression --- lib/routes/gamegrape/index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/routes/gamegrape/index.js b/lib/routes/gamegrape/index.js index 801c7d1719..5601a8722e 100644 --- a/lib/routes/gamegrape/index.js +++ b/lib/routes/gamegrape/index.js @@ -22,13 +22,13 @@ function resolveRelativeTime(relativeTime) { return (((day || 0) * 24 + (hour || 0)) * 60 + (min || 0)) * 60 * 1000; } module.exports = async (ctx) => { - const { id } = ctx.params, - feed_url = `${BASE_URL}/article/${id ? `index/id/${id}` : ''}`, - resp = await got({ url: feed_url }), - { data } = resp, - $ = cheerio.load(data), - feed_title = $('title').text(), - list = $('.news-info-box') + const { id } = ctx.params; + const feed_url = `${BASE_URL}/article/${id ? `index/id/${id}` : ''}`; + const resp = await got({ url: feed_url }); + const { data } = resp; + const $ = cheerio.load(data); + const feed_title = $('title').text(); + const list = $('.news-info-box') .map((_, item) => { item = $(item); const txt_author_pubDate = $(item.find('div > p > span')[1]).text();