From 80782cb2611d72d97fe5758e77df9fba17f52c83 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Fri, 22 May 2020 14:17:52 +0200 Subject: [PATCH] console: remove dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This check is always truthy. Thus, it's removed. Signed-off-by: Ruben Bridgewater PR-URL: https://github.com/nodejs/node/pull/33524 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Anto Aravinth --- lib/internal/console/constructor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/console/constructor.js b/lib/internal/console/constructor.js index 167f5528de9975..79c42d3b3e6507 100644 --- a/lib/internal/console/constructor.js +++ b/lib/internal/console/constructor.js @@ -487,7 +487,7 @@ const consoleMethods = { if (setIter) tabularData = previewEntries(tabularData); - const setlike = setIter || (mapIter && !isKeyValue) || isSet(tabularData); + const setlike = setIter || mapIter || isSet(tabularData); if (setlike) { const values = []; let length = 0;