Browse Source

tools/function-tester: fix shadowed variables

Fixes for https://github.com/coreos/etcd/issues/3954.
Gyu-Ho Lee 10 years ago
parent
commit
4289871cef
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tools/functional-tester/etcd-agent/agent.go

+ 1 - 2
tools/functional-tester/etcd-agent/agent.go

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