Small tweaks/clean up

This commit is contained in:
Neil Alexander 2018-05-09 14:03:28 +01:00
parent 45b106168e
commit 8ea3070a02
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 6 additions and 7 deletions

View file

@ -112,7 +112,6 @@ func generateConfig(isAutoconf bool) *nodeConfig {
}
func doGenconf() string {
cfg := generateConfig(false)
bs, err := hjson.Marshal(cfg)
if err != nil {
@ -239,8 +238,8 @@ func main() {
cfg = generateConfig(false)
var dat map[string]interface{}
if err := hjson.Unmarshal(config, &dat); err != nil {
panic(err)
}
panic(err)
}
if err = mapstructure.Decode(dat, &cfg); err != nil {
panic(err)
}