store: fix typo "recurisive"
parent
5f3fe7c61f
commit
a07c51a9c9
|
@ -251,7 +251,7 @@ func (n *node) Remove(dir, recursive bool, callback func(path string)) *etcdErr.
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *node) Repr(recurisive, sorted bool) *NodeExtern {
|
func (n *node) Repr(recursive, sorted bool) *NodeExtern {
|
||||||
if n.IsDir() {
|
if n.IsDir() {
|
||||||
node := &NodeExtern{
|
node := &NodeExtern{
|
||||||
Key: n.Path,
|
Key: n.Path,
|
||||||
|
@ -261,7 +261,7 @@ func (n *node) Repr(recurisive, sorted bool) *NodeExtern {
|
||||||
}
|
}
|
||||||
node.Expiration, node.TTL = n.ExpirationAndTTL()
|
node.Expiration, node.TTL = n.ExpirationAndTTL()
|
||||||
|
|
||||||
if !recurisive {
|
if !recursive {
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ func (n *node) Repr(recurisive, sorted bool) *NodeExtern {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
node.Nodes[i] = child.Repr(recurisive, sorted)
|
node.Nodes[i] = child.Repr(recursive, sorted)
|
||||||
|
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue