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