1
0
mirror of https://github.com/fatih/color.git synced 2025-11-23 21:54:41 +02:00

Fix for issue #230 now set/unsetwriter behave in a symmetric manner wrt color support detection

This commit is contained in:
Adrien Tay Pamart
2024-10-08 09:04:14 +01:00
parent 1c8d870660
commit 2aae7c9a9c

View File

@@ -235,10 +235,6 @@ func (c *Color) UnsetWriter(w io.Writer) {
return
}
if NoColor {
return
}
fmt.Fprintf(w, "%s[%dm", escape, Reset)
}