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 {
|
type orgMemberListOptions struct {
|
||||||
orgname string
|
orgname string
|
||||||
username string
|
|
||||||
role string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var orgMemberListOpts orgMemberListOptions
|
var orgMemberListOpts orgMemberListOptions
|
||||||
|
|
|
@ -102,15 +102,12 @@ func embeddedEtcd(ctx context.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
select {
|
<-e.Server.ReadyNotify()
|
||||||
case <-e.Server.ReadyNotify():
|
|
||||||
log.Infof("embedded etcd server is ready")
|
log.Infof("embedded etcd server is ready")
|
||||||
}
|
|
||||||
select {
|
<-ctx.Done()
|
||||||
case <-ctx.Done():
|
|
||||||
log.Infof("stopping embedded etcd server")
|
log.Infof("stopping embedded etcd server")
|
||||||
e.Close()
|
e.Close()
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue