From b0f2feadf48964e438a2ae9d663c56821248e62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 12 Feb 2026 21:26:40 -0500 Subject: [PATCH] refactor: shorter check --- public/src/modules/helpers.common.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index a33e7af8c7..6a09a32869 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -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) {