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