Skip to content

Commit

Permalink
Fix undefined c issue (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojinkimm committed Jun 8, 2020
1 parent b45cfa3 commit d29163f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ func consume(wg *sync.WaitGroup, r io.Reader) {
}
}

var c *color.Color

func parse(line string) {
trimmed := strings.TrimSpace(line)
defer color.Unset()
Expand Down Expand Up @@ -152,7 +154,7 @@ func setPalette() {
return
}
if c, ok := colors[vals[0]]; ok {
fail = c
fail = color.Set(c)
}
if c, ok := colors[vals[1]]; ok {
pass = color.New(c)
Expand Down

0 comments on commit d29163f

Please sign in to comment.