Skip to content

Commit

Permalink
Update tree.go (gin-gonic#2659)
Browse files Browse the repository at this point in the history
delete more "()"

(cherry picked from commit 61a0cda)
  • Loading branch information
youzeliang authored and Bisstocuz committed Nov 23, 2021
1 parent 7bea687 commit 2296c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ walk: // Outer loop for walking the tree
}

// ... but we can't
value.tsr = (len(path) == end+1)
value.tsr = len(path) == end+1
return
}

Expand All @@ -512,7 +512,7 @@ walk: // Outer loop for walking the tree
// No handle found. Check if a handle for this path + a
// trailing slash exists for TSR recommendation
n = n.children[0]
value.tsr = (n.path == "/" && n.handlers != nil)
value.tsr = n.path == "/" && n.handlers != nil
}
return

Expand Down

0 comments on commit 2296c03

Please sign in to comment.