diff --git a/config/reader/json/values.go b/config/reader/json/values.go index 70407085..8adb24a1 100644 --- a/config/reader/json/values.go +++ b/config/reader/json/values.go @@ -7,9 +7,9 @@ import ( "strings" "time" + simple "github.com/bitly/go-simplejson" "go-micro.dev/v4/config/reader" "go-micro.dev/v4/config/source" - simple "github.com/bitly/go-simplejson" ) type jsonValues struct { @@ -157,7 +157,7 @@ func (j *jsonValue) StringSlice(def []string) []string { v, err := j.Json.String() if err == nil { sl := strings.Split(v, ",") - if len(sl) > 1 { + if len(sl) > 0 { return sl } }