Skip to content

Commit

Permalink
vtest23
Browse files Browse the repository at this point in the history
  • Loading branch information
qm012 committed Jul 5, 2021
1 parent 23f6238 commit 3b84f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ walk: // Outer loop for walking the tree
n = n.children[i]

// match '/', If this condition is matched, the next route is found
if (len(n.fullPath) != 0 && n.wildChild) || strings.HasSuffix(path, "/") {
if strings.HasSuffix(path, "/") || (len(n.fullPath) != 0 && n.wildChild) {
matchNum++
}
continue walk
Expand Down

0 comments on commit 3b84f60

Please sign in to comment.