mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
refactor: remove uncessary check
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function (Posts) {
|
||||
fields: fields,
|
||||
});
|
||||
result.posts.forEach(post => modifyPost(post, fields));
|
||||
return Array.isArray(result.posts) ? result.posts : null;
|
||||
return result.posts;
|
||||
};
|
||||
|
||||
Posts.getPostData = async function (pid) {
|
||||
|
||||
Reference in New Issue
Block a user