mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
lib: remove unnecessary string interpolation
PR-URL: https://github.com/nodejs/node/pull/20890 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Jackson Tian <shyvo1987@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
3294d1bf62
commit
03043e290a
@ -83,7 +83,7 @@ function setupProcessWarnings() {
|
|||||||
if (isDeprecation && process.noDeprecation) return;
|
if (isDeprecation && process.noDeprecation) return;
|
||||||
const trace = process.traceProcessWarnings ||
|
const trace = process.traceProcessWarnings ||
|
||||||
(isDeprecation && process.traceDeprecation);
|
(isDeprecation && process.traceDeprecation);
|
||||||
var msg = `${prefix}`;
|
var msg = prefix;
|
||||||
if (warning.code)
|
if (warning.code)
|
||||||
msg += `[${warning.code}] `;
|
msg += `[${warning.code}] `;
|
||||||
if (trace && warning.stack) {
|
if (trace && warning.stack) {
|
||||||
|
Loading…
Reference in New Issue
Block a user