cmd: fix linter errors

Fix errors reported by default golangci-lint linters
This commit is contained in:
Simone Gotti 2019-07-02 16:22:24 +02:00
parent 3a7ba2694d
commit 2859c3144a
2 changed files with 7 additions and 12 deletions

View File

@ -36,9 +36,7 @@ var cmdOrgMemberList = &cobra.Command{
}
type orgMemberListOptions struct {
orgname string
username string
role string
orgname string
}
var orgMemberListOpts orgMemberListOptions

View File

@ -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