Skip to content

Commit

Permalink
Fix for issue fatih#230 now set/unsetwriter behave in a symmetric man…
Browse files Browse the repository at this point in the history
…ner wrt color support detection
  • Loading branch information
ataypamart committed Oct 8, 2024
1 parent 1c8d870 commit 2aae7c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ func (c *Color) UnsetWriter(w io.Writer) {
return
}

if NoColor {
return
}

fmt.Fprintf(w, "%s[%dm", escape, Reset)
}

Expand Down

0 comments on commit 2aae7c9

Please # to comment.