Node.js based forum software built for the modern web
refactor: remove uncessary check
Barış Soner Uşaklıf316c4d4b8df
diff --git a/src/posts/data.js b/src/posts/data.jsindex 27ea94549a..616a4d46cd 100644--- a/src/posts/data.js+++ b/src/posts/data.js@@ -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) {