We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9fde238 + 71568e0 commit 03891c8Copy full SHA for 03891c8
is.go
@@ -74,8 +74,8 @@ type I struct {
74
var noColorFlag bool
75
76
func init() {
77
- colorEnv := os.Getenv("IS_NO_COLOR") != "false"
78
- flag.BoolVar(&noColorFlag, "nocolor", colorEnv, "turns off colors")
+ envNoColor := os.Getenv("IS_NO_COLOR") == "true"
+ flag.BoolVar(&noColorFlag, "nocolor", envNoColor, "turns off colors")
79
}
80
81
// New makes a new testing helper using the specified
0 commit comments