From d2bcd55fb57c20d461f1d57f1145d20704bf1c41 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 22 May 2018 07:17:00 +0200 Subject: [PATCH] lib: remove unnecessary string interpolation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/20890 Reviewed-By: Anatoli Papirovski Reviewed-By: Colin Ihrig Reviewed-By: Michaël Zasso Reviewed-By: Jackson Tian Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: Benjamin Gruenbaum --- lib/internal/process/warning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/warning.js b/lib/internal/process/warning.js index a970b622c894f3..e367cf1f58bd9d 100644 --- a/lib/internal/process/warning.js +++ b/lib/internal/process/warning.js @@ -83,7 +83,7 @@ function setupProcessWarnings() { if (isDeprecation && process.noDeprecation) return; const trace = process.traceProcessWarnings || (isDeprecation && process.traceDeprecation); - var msg = `${prefix}`; + var msg = prefix; if (warning.code) msg += `[${warning.code}] `; if (trace && warning.stack) {