util: remove unnecessary template strings

PR-URL: https://github.com/nodejs/node/pull/59201
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: theanarkh <theratliter@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
btea
2025-09-08 05:47:02 +08:00
committed by GitHub
parent 80245da920
commit 3135477d4a

View File

@@ -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;
},