refactor(tree): replace string(/) with "/" in node.insertChild

This commit is contained in:
1911860538 2025-09-15 19:38:29 +08:00
parent f9bd00a6b7
commit 08bef12f0c

View File

@ -383,7 +383,7 @@ func (n *node) insertChild(path string, fullPath string, handlers HandlersChain)
} }
n.addChild(child) n.addChild(child)
n.indices = string('/') n.indices = "/"
n = child n = child
n.priority++ n.priority++