tree: remove duplicate assignment

copy from cfa3cb764b
This commit is contained in:
Bo-Yi Wu 2020-01-27 17:13:47 +08:00 committed by GitHub
parent 07c0f05f24
commit db3b188ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -464,7 +464,6 @@ walk: // Outer loop for walking the tree
for i, max := 0, len(indices); i < max; i++ {
if c == indices[i] {
n = n.children[i]
prefix = n.path
continue walk
}
}
@ -508,7 +507,6 @@ walk: // Outer loop for walking the tree
if len(n.children) > 0 {
path = path[end:]
n = n.children[0]
prefix = n.path
continue walk
}