mirror of
https://github.com/go-micro/go-micro.git
synced 2025-05-25 21:53:14 +02:00
chore: linting
This commit is contained in:
parent
0944f9917e
commit
e00290b41b
@ -373,7 +373,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
|||||||
if name := ctx.String("store"); len(name) > 0 {
|
if name := ctx.String("store"); len(name) > 0 {
|
||||||
s, ok := c.opts.Stores[name]
|
s, ok := c.opts.Stores[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Unsupported store: %s", name)
|
return fmt.Errorf("unsupported store: %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
*c.opts.Store = s(store.WithClient(*c.opts.Client))
|
*c.opts.Store = s(store.WithClient(*c.opts.Client))
|
||||||
@ -383,7 +383,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
|||||||
if name := ctx.String("tracer"); len(name) > 0 {
|
if name := ctx.String("tracer"); len(name) > 0 {
|
||||||
r, ok := c.opts.Tracers[name]
|
r, ok := c.opts.Tracers[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Unsupported tracer: %s", name)
|
return fmt.Errorf("unsupported tracer: %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
*c.opts.Tracer = r()
|
*c.opts.Tracer = r()
|
||||||
@ -409,7 +409,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
|||||||
if name := ctx.String("auth"); len(name) > 0 {
|
if name := ctx.String("auth"); len(name) > 0 {
|
||||||
r, ok := c.opts.Auths[name]
|
r, ok := c.opts.Auths[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Unsupported auth: %s", name)
|
return fmt.Errorf("unsupported auth: %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
*c.opts.Auth = r(authOpts...)
|
*c.opts.Auth = r(authOpts...)
|
||||||
@ -441,7 +441,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
|||||||
if name := ctx.String("profile"); len(name) > 0 {
|
if name := ctx.String("profile"); len(name) > 0 {
|
||||||
p, ok := c.opts.Profiles[name]
|
p, ok := c.opts.Profiles[name]
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("Unsupported profile: %s", name)
|
return fmt.Errorf("unsupported profile: %s", name)
|
||||||
}
|
}
|
||||||
|
|
||||||
*c.opts.Profile = p()
|
*c.opts.Profile = p()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user