From fac3d892c96295ce301477b2f6871765efe707fe Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 25 Jul 2025 09:31:59 +0800 Subject: [PATCH] util: remove unnecessary template strings --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 0884a8d518602d..32c95b12543335 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; },