Skip to content

Commit

Permalink
tree: remove duplicate assignment (#2222)
Browse files Browse the repository at this point in the history
copy from julienschmidt/httprouter@cfa3cb7

Co-authored-by: thinkerou <thinkerou@gmail.com>
  • Loading branch information
appleboy and thinkerou authored Jan 28, 2020
1 parent 64e6a76 commit 0e4d8ea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ walk: // Outer loop for walking the tree
for i, max := 0, len(indices); i < max; i++ {
if c == indices[i] {
n = n.children[i]
prefix = n.path
continue walk
}
}
Expand Down Expand Up @@ -508,7 +507,6 @@ walk: // Outer loop for walking the tree
if len(n.children) > 0 {
path = path[end:]
n = n.children[0]
prefix = n.path
continue walk
}

Expand Down

0 comments on commit 0e4d8ea

Please sign in to comment.