code style

This commit is contained in:
A.Unger
2020-03-17 14:34:45 +01:00
parent 40a27c9e93
commit e2fec340eb

View File

@@ -31,12 +31,11 @@ func Server(cfg *config.Config) *cli.Command {
Usage: "Start integrated server",
Flags: flagset.ServerWithConfig(cfg),
Before: func(ctx *cli.Context) error {
ParseConfig(ctx, cfg)
if cfg.HTTP.Root != "/" {
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
}
return nil
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
logger := NewLogger(cfg)