diff options
Diffstat (limited to 'config/configProvider.go')
-rw-r--r-- | config/configProvider.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/configProvider.go b/config/configProvider.go index a7dc18960..432948d74 100644 --- a/config/configProvider.go +++ b/config/configProvider.go @@ -51,7 +51,6 @@ func GetStringSlicePreserveString(cfg Provider, key string) []string { sd := cfg.Get(key) if sds, ok := sd.(string); ok { return []string{sds} - } else { - return cast.ToStringSlice(sd) } + return cast.ToStringSlice(sd) } |