cmd: fix linter errors
Fix errors reported by default golangci-lint linters
This commit is contained in:
parent
3a7ba2694d
commit
2859c3144a
|
@ -36,9 +36,7 @@ var cmdOrgMemberList = &cobra.Command{
|
|||
}
|
||||
|
||||
type orgMemberListOptions struct {
|
||||
orgname string
|
||||
username string
|
||||
role string
|
||||
orgname string
|
||||
}
|
||||
|
||||
var orgMemberListOpts orgMemberListOptions
|
||||
|
|
|
@ -102,15 +102,12 @@ func embeddedEtcd(ctx context.Context) error {
|
|||
}
|
||||
|
||||
go func() {
|
||||
select {
|
||||
case <-e.Server.ReadyNotify():
|
||||
log.Infof("embedded etcd server is ready")
|
||||
}
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
log.Infof("stopping embedded etcd server")
|
||||
e.Close()
|
||||
}
|
||||
<-e.Server.ReadyNotify()
|
||||
log.Infof("embedded etcd server is ready")
|
||||
|
||||
<-ctx.Done()
|
||||
log.Infof("stopping embedded etcd server")
|
||||
e.Close()
|
||||
}()
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue