diff --git a/x/configurl/config.go b/x/configurl/config.go index 2c427f8d..628bbe67 100644 --- a/x/configurl/config.go +++ b/x/configurl/config.go @@ -91,12 +91,12 @@ type Config struct { } func ParseConfig(configText string) (*Config, error) { - config := &Config{} parts := strings.Split(strings.TrimSpace(configText), "|") if len(parts) == 1 && parts[0] == "" { return nil, nil } + var config *Config = nil for _, part := range parts { part = strings.TrimSpace(part) if part == "" {