Only populate if not normalising

This commit is contained in:
Neil Alexander 2022-09-01 10:34:21 +01:00
parent 8a8f8552ab
commit e19395eca7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -27,12 +27,6 @@ func main() {
Generate: true,
Monolithic: !*polylith,
})
} else {
var err error
if cfg, err = config.Load(*normalise, !*polylith); err != nil {
panic(err)
}
}
if *serverName != "" {
cfg.Global.ServerName = gomatrixserverlib.ServerName(*serverName)
}
@ -84,6 +78,12 @@ func main() {
EnableOutbound: true,
}
}
} else {
var err error
if cfg, err = config.Load(*normalise, !*polylith); err != nil {
panic(err)
}
}
j, err := yaml.Marshal(cfg)
if err != nil {