From 81799caeb6c51861d49aef0804c76246a7200079 Mon Sep 17 00:00:00 2001 From: gedenata Date: Wed, 10 Jun 2020 13:59:28 +0800 Subject: [PATCH] variable global color --- utils/color.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/color.go b/utils/color.go index 84525dc80..6d8c367b3 100644 --- a/utils/color.go +++ b/utils/color.go @@ -52,7 +52,7 @@ func makeColorFunc(color string) func(string) string { } } -func isColorEnabled() bool { +func isColorEnabled() bool { if !checkedNoColor { _isColorEnabled = os.Getenv("NO_COLOR") == "" checkedNoColor = true