From a45b902d1280bad9beee776e6ec85a5bb99e4342 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sat, 12 Dec 2015 04:40:24 -0800 Subject: [PATCH] store: fixes shadowed variables with go tool vet. Fixes for https://github.com/coreos/etcd/issues/3954. --- store/event_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/event_history.go b/store/event_history.go index edab33953..5db95b244 100644 --- a/store/event_history.go +++ b/store/event_history.go @@ -82,7 +82,7 @@ func (eh *EventHistory) scan(key string, recursive bool, index uint64) (*Event, if recursive { // add tailing slash - key := path.Clean(key) + key = path.Clean(key) if key[len(key)-1] != '/' { key = key + "/" }