tools/function-tester: fix shadowed variables

Fixes for https://github.com/coreos/etcd/issues/3954.
This commit is contained in:
Gyu-Ho Lee 2015-12-12 04:52:05 -08:00
parent 52d21331e2
commit 4289871cef

View File

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