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: #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 authored and codebytere committed Jun 30, 2020
1 parent b7551e9 commit 3b3621b
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 3b3621b

Please sign in to comment.