mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
store: fixes shadowed variables with go tool vet.
Fixes for https://github.com/coreos/etcd/issues/3954.
This commit is contained in:
parent
4289871cef
commit
a45b902d12
@ -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 + "/"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user