Skip to content

Commit

Permalink
feat: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen233 committed Aug 31, 2021
1 parent 86831de commit b33f331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes_test.go
Expand Up @@ -635,4 +635,4 @@ func TestRouteContextHoldsFullPath(t *testing.T) {

w := performRequest(router, http.MethodGet, "/not-found")
assert.Equal(t, http.StatusNotFound, w.Code)
}
}
2 changes: 1 addition & 1 deletion tree.go
Expand Up @@ -600,7 +600,7 @@ walk: // Outer loop for walking the tree
// extra trailing slash if a leaf exists for that path
value.tsr = path == "/" ||
(len(prefix) == len(path)+1 && prefix[len(path)] == '/' &&
path == prefix[:len(prefix) - 1] && n.handlers != nil)
path == prefix[:len(prefix)-1] && n.handlers != nil)
return
}
}
Expand Down

0 comments on commit b33f331

Please sign in to comment.