Skip to content

Commit 69b2cb5

Browse files
committed
Revert "Simplify NO_COLOR check"
This reverts commit e9ff1be.
1 parent 07797f3 commit 69b2cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def use_color(setting):
4848
if setting not in COLOR_CHOICES:
4949
raise InvalidColorSetting(setting)
5050

51-
if os.environ.get('NO_COLOR'):
51+
if 'NO_COLOR' in os.environ and os.environ['NO_COLOR']:
5252
return False
5353

5454
return (

0 commit comments

Comments
 (0)