mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
remove unnecessary checks
This commit is contained in:
@@ -111,7 +111,7 @@ function filterAndSort(pids, data, callback) {
|
||||
getMatchedPosts(pids, data, next);
|
||||
},
|
||||
function (posts, next) {
|
||||
if (!Array.isArray(posts) || !posts.length) {
|
||||
if (!posts.length) {
|
||||
return callback(null, pids);
|
||||
}
|
||||
posts = posts.filter(Boolean);
|
||||
|
||||
Reference in New Issue
Block a user