Skip to content

Commit d29163f

Browse files
authored
Fix undefined c issue (#28)
1 parent b45cfa3 commit d29163f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ func consume(wg *sync.WaitGroup, r io.Reader) {
9494
}
9595
}
9696

97+
var c *color.Color
98+
9799
func parse(line string) {
98100
trimmed := strings.TrimSpace(line)
99101
defer color.Unset()
@@ -152,7 +154,7 @@ func setPalette() {
152154
return
153155
}
154156
if c, ok := colors[vals[0]]; ok {
155-
fail = c
157+
fail = color.Set(c)
156158
}
157159
if c, ok := colors[vals[1]]; ok {
158160
pass = color.New(c)

0 commit comments

Comments
 (0)