Skip to content

Commit

Permalink
tree: remove duplicate assignment (gin-gonic#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
2 people authored and ThomasObenaus committed Feb 19, 2020
1 parent 09068f0 commit 79f6cec
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 79f6cec

Please sign in to comment.