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:
Henry Wang 2019-07-08 04:47:16 +01:00 committed by DIYgod
parent bb316d0c98
commit eeec8494d4
1 changed files with 0 additions and 4 deletions

View File

@ -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;