style: auto format

This commit is contained in:
github-actions[bot]
2023-06-30 14:15:01 +00:00
parent 7775ee5744
commit 8d299bb671
+1 -3
View File
@@ -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 () => {