From f946aa0360219d59f6854348decc5e8357d0b2e7 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 11 Dec 2020 07:40:36 -0800 Subject: [PATCH] debugger: remove unused function argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `{colors: true}` removed here is ignored by the function it is being sent to. PR-URL: https://github.com/nodejs/node/pull/38400 Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/inspector/inspect_repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/inspector/inspect_repl.js b/lib/internal/inspector/inspect_repl.js index 840ef101c77e34..4827ad1f914c86 100644 --- a/lib/internal/inspector/inspect_repl.js +++ b/lib/internal/inspector/inspect_repl.js @@ -581,7 +581,7 @@ function createRepl(inspector) { const lines = watchedExpressions .map((expr, idx) => { const prefix = `${leftPad(idx, ' ', lastIndex)}: ${expr} =`; - const value = inspect(values[idx], { colors: true }); + const value = inspect(values[idx]); if (value.indexOf('\n') === -1) { return `${prefix} ${value}`; }