From 8d299bb6715d9179a8ebb3d4987ac18ab4e0baa0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:15:01 +0000 Subject: [PATCH] style: auto format --- lib/v2/yahoo/news/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/v2/yahoo/news/index.js b/lib/v2/yahoo/news/index.js index 4e507f931..726ec4298 100644 --- a/lib/v2/yahoo/news/index.js +++ b/lib/v2/yahoo/news/index.js @@ -11,9 +11,7 @@ module.exports = async (ctx) => { const category = ctx.params.category ? ctx.params.category.toLowerCase() : ''; const rssUrl = `https://${region ? `${region}.` : ''}news.yahoo.com/rss/${category}`; const feed = await parser.parseURL(rssUrl); - const filteredItems = feed.items.filter( - (item) => !item.link.includes('promotions') && new URL(item.link).hostname.match(/.*\.yahoo\.com$/) - ); + const filteredItems = feed.items.filter((item) => !item.link.includes('promotions') && new URL(item.link).hostname.match(/.*\.yahoo\.com$/)); const items = await Promise.all( filteredItems.map((item) => ctx.cache.tryGet(item.link, async () => {