From 48e7df23371135432369424742337a6aed24b8df Mon Sep 17 00:00:00 2001 From: Brett Buddin Date: Thu, 2 Apr 2020 20:31:02 -0400 Subject: [PATCH] Any non-empty value should be a disabling intent. Conforms to the informal standard proposed in https://no-color.org --- utils/color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/color.go b/utils/color.go index 46629ef8d..b2b2add21 100644 --- a/utils/color.go +++ b/utils/color.go @@ -44,7 +44,7 @@ func makeColorFunc(color string) func(string) string { func isColorEnabled() bool { if !checkedNoColor { - _isColorEnabled = os.Getenv("NO_COLOR") != "1" + _isColorEnabled = os.Getenv("NO_COLOR") == "" checkedNoColor = true } return _isColorEnabled