diff --git a/config/file.go b/config/file.go index fc08a06..2fff0ab 100644 --- a/config/file.go +++ b/config/file.go @@ -64,7 +64,10 @@ func Read() error { if len(colStr) > 0 { var colNames []string for _, s := range strings.Split(colStr, ",") { - colNames = append(colNames, strings.TrimSpace(s)) + s = strings.TrimSpace(s) + if s != "" { + colNames = append(colNames, strings.TrimSpace(s)) + } } SetColumns(colNames) }