normalize settings

This commit is contained in:
A.Unger
2021-11-08 12:21:07 +01:00
parent e297142529
commit db9dc74555
4 changed files with 16 additions and 81 deletions

View File

@@ -25,11 +25,7 @@ func Server(cfg *config.Config) *cli.Command {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
if err := ParseConfig(ctx, cfg); err != nil {
return err
}
return nil
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)