Skip to content

Commit b1a70f8

Browse files
committed
Don't disable colors when doing NO_COLOR=""
1 parent e3c1d40 commit b1a70f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
process.title = 'elm-review';
22

33
if (!process.argv.includes('--no-color')) {
4-
if (process.env['NO_COLOR'] === undefined) {
4+
if (process.env.NO_COLOR !== undefined && process.env.NO_COLOR !== '') {
5+
process.argv.push('--no-color');
6+
} else {
57
// Force `chalk` to add colors by default.
68
process.argv.push('--color');
7-
} else {
8-
process.argv.push('--no-color');
99
}
1010
}
1111

0 commit comments

Comments
 (0)