From 3135477d4a64406f59f1d839ed69ad6e6502aaaf Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Mon, 8 Sep 2025 05:47:02 +0800 Subject: [PATCH] util: remove unnecessary template strings PR-URL: https://github.com/nodejs/node/pull/59201 Reviewed-By: James M Snell Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Luigi Pinca Reviewed-By: theanarkh Reviewed-By: Ruben Bridgewater --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 4b014a290c..6925c17f0c 100644 --- a/lib/util.js +++ b/lib/util.js @@ -181,7 +181,7 @@ function styleText(format, text, { validateStream = true, stream = process.stdou // Dim and bold are not mutually exclusive, so we need to reapply return `${match}${escapeStyleCode(code[0])}`; } - return `${escapeStyleCode(code[0])}`; + return escapeStyleCode(code[0]); } return match; },