Initialize empty server config map (#566)

This commit is contained in:
Jesse Peterson
2019-02-15 12:08:26 -08:00
committed by GitHub
parent f909214f88
commit 9eec556ea0

View File

@@ -288,6 +288,9 @@ func loadClientConfig() (*ClientConfig, error) {
if err != nil {
return nil, fmt.Errorf("failed to unmarshal %s : %s", path, err)
}
if cfg.Servers == nil {
cfg.Servers = map[string]ServerConfig{}
}
return &cfg, nil
}