use golangci-lint

This commit is contained in:
A.Unger
2020-05-22 13:45:17 +02:00
parent 29d8b1b981
commit 1ef3792906
5 changed files with 4 additions and 23 deletions

View File

@@ -33,9 +33,7 @@ func Server(cfg *config.Config) *cli.Command {
}
runtime := runtime.New()
runtime.Start()
return nil
return runtime.Start()
},
}
}

View File

@@ -12,9 +12,7 @@ func Command(app *cli.App) *cli.Command {
Category: "Micro",
Action: func(c *cli.Context) error {
runtime := New()
runtime.Start()
return nil
return runtime.Start()
},
}
return &command

View File

@@ -15,17 +15,6 @@ type Options struct {
// Option undocummented
type Option func(o *Options)
// newOptions initializes the available default options.
func newOptions(opts ...Option) Options {
opt := Options{}
for _, o := range opts {
o(&opt)
}
return opt
}
// Services option
func Services(s []string) Option {
return func(o *Options) {