File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ func (n *node) incrementChildPrio(pos int) int {
92
92
for ; newPos > 0 && cs [newPos - 1 ].priority < prio ; newPos -- {
93
93
// Swap node positions
94
94
cs [newPos - 1 ], cs [newPos ] = cs [newPos ], cs [newPos - 1 ]
95
-
96
95
}
97
96
98
97
// Build new index char string
@@ -112,7 +111,7 @@ func (n *node) addRoute(path string, handle Handle) {
112
111
n .priority ++
113
112
114
113
// Empty tree
115
- if len ( n .path ) == 0 && len ( n .indices ) == 0 {
114
+ if n .path == "" && n .indices == "" {
116
115
n .insertChild (path , fullPath , handle )
117
116
n .nType = root
118
117
return
@@ -348,7 +347,6 @@ walk: // Outer loop for walking the tree
348
347
// trailing slash if a leaf exists for that path.
349
348
tsr = (path == "/" && n .handle != nil )
350
349
return
351
-
352
350
}
353
351
354
352
// Handle wildcard child
You can’t perform that action at this time.
0 commit comments