From 4289871cef8c2c7e381d4a2f59510c3c8cb0f7a0 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sat, 12 Dec 2015 04:52:05 -0800 Subject: [PATCH] tools/function-tester: fix shadowed variables Fixes for https://github.com/coreos/etcd/issues/3954. --- tools/functional-tester/etcd-agent/agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/functional-tester/etcd-agent/agent.go b/tools/functional-tester/etcd-agent/agent.go index b75e08873..f3638e601 100644 --- a/tools/functional-tester/etcd-agent/agent.go +++ b/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