mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
fix: remove a redundant if block (#2577)
Condition 'false === result' is always false. The value of variable 'result' is originated from the return value of 'parseContent()' defined at line 22
This commit is contained in:
@@ -77,10 +77,6 @@ module.exports = async (ctx) => {
|
||||
});
|
||||
const result = parseContent(response.data);
|
||||
|
||||
if (false === result) {
|
||||
return Promise.resolve('');
|
||||
}
|
||||
|
||||
single.author = result.author;
|
||||
single.description = result.description;
|
||||
single.pubDate = result.pubDate;
|
||||
|
||||
Reference in New Issue
Block a user