mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-13 18:17:42 +01:00
refactor: shorter check
This commit is contained in:
@@ -374,11 +374,7 @@ module.exports = function (utils, Benchpress, relative_path) {
|
||||
}
|
||||
|
||||
function shouldHideReplyContainer(post) {
|
||||
if (post.replies.count <= 0 || post.replies.hasSingleImmediateReply) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return post.replies.count <= 0 || post.replies.hasSingleImmediateReply;
|
||||
}
|
||||
|
||||
function humanReadableNumber(number, toFixed = 1) {
|
||||
|
||||
Reference in New Issue
Block a user