From 06a9596d3670d4b163a89f46126a9088dc03b425 Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Mon, 20 May 2019 19:45:42 +0200 Subject: [PATCH] fix empty space member count --- status.go | 3 +++ 1 file changed, 3 insertions(+) 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 {