resolve linter issues

This commit is contained in:
David Christofas
2021-02-25 14:45:19 +01:00
parent 0802e8aac3
commit ee161b2359
6 changed files with 23 additions and 6 deletions
+4 -1
View File
@@ -145,7 +145,10 @@ func Server(cfg *config.Config) *cli.Command {
logger.Err(err).Msg("error opening config file")
return err
}
json.Unmarshal(contents, &cfg.Web.Config)
if err := json.Unmarshal(contents, &cfg.Web.Config); err != nil {
logger.Fatal().Err(err).Msg("error unmarshalling config file")
return err
}
}
var (