mirror of https://github.com/gin-gonic/gin.git
tree: remove duplicate assignment (#2222)
copy from cfa3cb764b
Co-authored-by: thinkerou <thinkerou@gmail.com>
This commit is contained in:
parent
64e6a7654f
commit
0e4d8eaf07
2
tree.go
2
tree.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue