store: fixes shadowed variables with go tool vet.

Fixes for https://github.com/coreos/etcd/issues/3954.
release-2.3
Gyu-Ho Lee 2015-12-12 04:40:24 -08:00
parent 4289871cef
commit a45b902d12
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "/"
}