Fixed a typo in get().

This commit is contained in:
Alexander Andreev 2023-05-28 03:18:15 +04:00
parent 257bd7ea76
commit 2bfaae11f2
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -70,12 +70,12 @@ outer:
}
}
return n.handler, params
return curNode.handler, params
}
if pathLen > i+1 {
var paramNode *node
for _, next := range n.children {
for _, next := range curNode.children {
if next.endpoint == path[i+1] {
curNode = next
continue outer