Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Oct 29, 2024
1 parent ffc0654 commit d3712d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/configurl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit d3712d1

Please sign in to comment.