diff --git a/stack.go b/stack.go index a71fa3a..4d87289 100644 --- a/stack.go +++ b/stack.go @@ -22,7 +22,7 @@ func stackp(w io.Writer, noColor bool) { re := regexp.MustCompile(`\d:`) // this pattern is the one created in `readLastLine()` traces := getStackTrace() - if len(traces) > 0 && (noColor == false) { + if len(traces) > 0 && (!noColor) { printWithColor( w, noColor,