mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 14:40:23 +08:00
fix: remove a redundant condition check (#2576)
* fix: remove a redundant condition check * fix: remove a redundant condition check
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
let originalData = [];
|
||||
if (response.data.d && response.data.d.entrylist) {
|
||||
originalData = response.data.d && response.data.d.entrylist.slice(0, 5);
|
||||
originalData = response.data.d.entrylist.slice(0, 5);
|
||||
}
|
||||
const resultItems = await util.ProcessFeed(originalData, ctx.cache);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ module.exports = async (ctx) => {
|
||||
|
||||
let originalData = [];
|
||||
if (response.data.d && response.data.d.entrylist) {
|
||||
originalData = response.data.d && response.data.d.entrylist.slice(0, 10);
|
||||
originalData = response.data.d.entrylist.slice(0, 10);
|
||||
}
|
||||
const resultItems = await util.ProcessFeed(originalData, ctx.cache);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user