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:
parent
bb316d0c98
commit
eeec8494d4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue