Files
node/lib
Rich Trott 26f8af9feb console: remove unreachable code
The current version of lib/internal/console/constructor.js includes this
as part of line 470:

  setlike ? iterKey : indexKey

However, `setlike` is guaranteed to be true because we are inside of an
`if` block (starting on line 463) that explicitly checks that `setlike`
is true.

Coverage reporting confirms that `setliked` is always true when it is
reached in our tests.

Remove the ternary as the value provided will always be `iterKey`.

PR-URL: https://github.com/nodejs/node/pull/26863
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
2019-03-24 14:58:18 -07:00
..
2019-03-24 14:58:18 -07:00
2019-03-20 07:48:25 -07:00
2019-03-20 07:48:25 -07:00
2019-03-17 10:53:58 +01:00
2018-11-20 10:42:31 -08:00
…
2019-03-01 14:55:33 +01:00
2018-07-16 15:55:15 -07:00
2019-03-05 18:37:39 +01:00
2019-03-13 15:50:32 +00:00
2019-02-03 20:40:16 +01:00