瀏覽代碼

tools/function-tester: fix shadowed variables

Fixes for https://github.com/coreos/etcd/issues/3954.
Gyu-Ho Lee 10 年之前
父節點
當前提交
4289871cef
共有 1 個文件被更改,包括 1 次插入2 次删除
  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