From eb6712aa016128b60faf6c69f43b537a9d9d2e11 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 09:10:16 +0000 Subject: [PATCH] style: auto format --- lib/v2/swjtu/jtys/yjs.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/v2/swjtu/jtys/yjs.js b/lib/v2/swjtu/jtys/yjs.js index df13855a4..e16134c61 100644 --- a/lib/v2/swjtu/jtys/yjs.js +++ b/lib/v2/swjtu/jtys/yjs.js @@ -19,19 +19,17 @@ module.exports = async (ctx) => { link: url_addr, item: list && - list - .toArray() - .map((i) => { - const item = $(i); - const news_info = item.find('div[class="news-title newsInfo"]'); - const news_month = item.find('.month'); - const news_day = item.find('.day'); - return { - title: `标题:${news_info.text()}`, - pubDate: parseDate(`${news_month.text()}.${news_day.text()}`), - link: `${rootURL}/yethan/WebIndexAction?setAction=newsInfo&newsId=${news_info.attr('newsid')}`, - }; - }), + list.toArray().map((i) => { + const item = $(i); + const news_info = item.find('div[class="news-title newsInfo"]'); + const news_month = item.find('.month'); + const news_day = item.find('.day'); + return { + title: `标题:${news_info.text()}`, + pubDate: parseDate(`${news_month.text()}.${news_day.text()}`), + link: `${rootURL}/yethan/WebIndexAction?setAction=newsInfo&newsId=${news_info.attr('newsid')}`, + }; + }), allowEmpty: true, }; };