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

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

View File

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