Update tree.go (#2659)

delete more "()"
This commit is contained in:
youzeliang 2021-06-23 06:44:39 +08:00 committed by thinkerou
parent a75162e0c8
commit 04d8641d90
1 changed files with 2 additions and 2 deletions

View File

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