Skip to content

Commit

Permalink
console: remove dead code
Browse files Browse the repository at this point in the history
This check is always truthy. Thus, it's removed.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: nodejs#33524
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
  • Loading branch information
BridgeAR committed May 30, 2020
1 parent 6cc94b2 commit b61249e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/console/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,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;
Expand Down

0 comments on commit b61249e

Please sign in to comment.