summaryrefslogtreecommitdiff
path: root/lib/internal/tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/tty.js')
-rw-r--r--lib/internal/tty.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/tty.js b/lib/internal/tty.js
index 6fd14145fc..faf5df9b42 100644
--- a/lib/internal/tty.js
+++ b/lib/internal/tty.js
@@ -200,7 +200,7 @@ function getColorDepth(env = process.env) {
function hasColors(count, env) {
if (env === undefined &&
- (count === undefined || typeof count === 'object' && count !== null)) {
+ (count === undefined || (typeof count === 'object' && count !== null))) {
env = count;
count = 16;
} else {