From eeec8494d4327591087e1c00637ff1f820b01281 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Mon, 8 Jul 2019 04:47:16 +0100 Subject: [PATCH] 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 --- lib/routes/sexinsex/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/routes/sexinsex/index.js b/lib/routes/sexinsex/index.js index e42796af5..1547d28b7 100644 --- a/lib/routes/sexinsex/index.js +++ b/lib/routes/sexinsex/index.js @@ -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;