mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-19 07:38:57 +08:00
parent
07c0f05f24
commit
db3b188ab9
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++ {
|
for i, max := 0, len(indices); i < max; i++ {
|
||||||
if c == indices[i] {
|
if c == indices[i] {
|
||||||
n = n.children[i]
|
n = n.children[i]
|
||||||
prefix = n.path
|
|
||||||
continue walk
|
continue walk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -508,7 +507,6 @@ walk: // Outer loop for walking the tree
|
|||||||
if len(n.children) > 0 {
|
if len(n.children) > 0 {
|
||||||
path = path[end:]
|
path = path[end:]
|
||||||
n = n.children[0]
|
n = n.children[0]
|
||||||
prefix = n.path
|
|
||||||
continue walk
|
continue walk
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user