From 10cd3210fafb0506bb0a1223a70299a7e375096d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 9 Jul 2023 15:01:47 +0000 Subject: [PATCH] style: auto format --- lib/v2/sjtu/gs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/v2/sjtu/gs.js b/lib/v2/sjtu/gs.js index 8ecacd030..934b352e9 100644 --- a/lib/v2/sjtu/gs.js +++ b/lib/v2/sjtu/gs.js @@ -35,11 +35,9 @@ module.exports = async (ctx) => { const items = await Promise.all( list.map((item) => ctx.cache.tryGet(item.link, async () => { - if (new URL(item.link).hostname === 'mp.weixin.qq.com') { item.description = (await fetchArticle(ctx, item.link)).description; - } - else { + } else { const detailResponse = await got({ method: 'get', url: item.link,