Found and fixed a typo. n -> curNode.

This commit is contained in:
Alexander Andreev 2023-05-28 02:43:09 +04:00
parent 9cda541108
commit 4f54ab4156
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -111,7 +111,7 @@ outer:
return nil
}
for _, child := range n.children {
for _, child := range curNode.children {
firstChar := path[i+1][0]
if (firstChar == ':' || firstChar == '*') && firstChar == child.endpoint[0] {
curNode = child