Skip to content

Commit 61a0cda

Browse files
authored
Update tree.go (#2659)
delete more "()"
1 parent 34ce210 commit 61a0cda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ walk: // Outer loop for walking the tree
487487
}
488488

489489
// ... but we can't
490-
value.tsr = (len(path) == end+1)
490+
value.tsr = len(path) == end+1
491491
return
492492
}
493493

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

0 commit comments

Comments
 (0)