mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/function-tester: fix shadowed variables
Fixes for https://github.com/coreos/etcd/issues/3954.
This commit is contained in:
parent
52d21331e2
commit
4289871cef
@ -106,8 +106,7 @@ func (a *Agent) restart() error {
|
||||
}
|
||||
|
||||
func (a *Agent) cleanup() error {
|
||||
err := a.stop()
|
||||
if err != nil {
|
||||
if err := a.stop(); err != nil {
|
||||
return err
|
||||
}
|
||||
a.state = stateUninitialized
|
||||
|
Loading…
x
Reference in New Issue
Block a user