mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-10 17:42:52 +01:00
refactor: remove pointless true
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user