diff --git a/status.go b/status.go index 02c84c1..67e2507 100644 --- a/status.go +++ b/status.go @@ -123,6 +123,9 @@ func loadTemplates() (*template.Template, error) { return value }, "csvlist": func(csv string) []string { + if csv == "" { + return []string{} + } return strings.Split(csv, ", ") }, "jsonize": func(mustType string, data interface{}) string {