Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tty: remove extra if check for COLORTERM
  • Loading branch information
duncanhealy committed Nov 17, 2019
commit 7df205f97d3978103d134759965d96d93e80feef
5 changes: 2 additions & 3 deletions lib/internal/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ function getColorDepth(env = process.env) {
return COLORS_256;
}

if (env.COLORTERM) {
if (env.COLORTERM === 'truecolor' || env.COLORTERM === '24bit')
return COLORS_16m;
if (env.COLORTERM === 'truecolor' || env.COLORTERM === '24bit') {
return COLORS_16m;
}

if (env.TERM) {
Expand Down