mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 06:30:40 +08:00
refactor: avoid promise overhead (#8028)
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = async (ctx, next) => {
|
||||
// sort items
|
||||
ctx.state.data.item = ctx.state.data.item.sort((a, b) => +new Date(b.pubDate || 0) - +new Date(a.pubDate || 0));
|
||||
|
||||
const handleItem = async (item) => {
|
||||
const handleItem = (item) => {
|
||||
item.title && (item.title = entities.decodeXML(item.title + ''));
|
||||
|
||||
// handle pubDate
|
||||
|
||||
Reference in New Issue
Block a user