Commit aa5dfe1f143d726012505f2c61f8937d098189d6

Parents: 263f6bf06804f91ed8ab6e47420ef09ecc54b8fd

From: Moritz Poldrack <ich@moritz-poldrack.de>
Date: Tue Jun 22 09:49:12 2021 +0700

removed another duplicate

		

Stats

colorsfg.go +1/-6

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
diff --git a/colorsfg.go b/colorsfg.go
index c2cb86cd4d9e849589b512eddcbca6ba437c7a3a..c7dbddd43cf9b1dfb3fb980df213721c1ead86ce 100644
--- a/colorsfg.go
+++ b/colorsfg.go
@@ -53,12 +53,7 @@ 	return escape + greenfg + set
 }
 
 // UnsetGreen resets the foreground color from green to default.
-func UnsetGreen() string {
-	if nocolorIsSet {
-		return ""
-	}
-	return escape + resetfg + set
-}
+var UnsetGreen func() string = UnsetBlack
 
 // Yellow wraps the content in ANSI codes to make its foreground color yellow
 func Yellow(content ...interface{}) string {