mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-09 07:18:40 -05:00
use golangci-lint
This commit is contained in:
@@ -33,9 +33,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
runtime := runtime.New()
|
||||
runtime.Start()
|
||||
|
||||
return nil
|
||||
return runtime.Start()
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user