Node.js based forum software built for the modern web
refactor: remove pointless true
Barış Soner Uşaklı747457d7b619
diff --git a/src/categories/index.js b/src/categories/index.jsindex ef1879ab31..cde2f02d6a 100644--- a/src/categories/index.js+++ b/src/categories/index.js@@ -156,7 +156,7 @@ Categories.setUnread = async function (tree, cids, uid) {if (category) {category.unread = false;if (unreadCids.includes(category.cid)) {- category.unread = category.topic_count > 0 && true;+ category.unread = category.topic_count > 0;} else if (category.children.length) {category.children.forEach(setCategoryUnread);category.unread = category.children.some(c => c && c.unread);