mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
feat: format code
This commit is contained in:
parent
86831de61c
commit
b33f331d71
@ -635,4 +635,4 @@ func TestRouteContextHoldsFullPath(t *testing.T) {
|
||||
|
||||
w := performRequest(router, http.MethodGet, "/not-found")
|
||||
assert.Equal(t, http.StatusNotFound, w.Code)
|
||||
}
|
||||
}
|
||||
|
2
tree.go
2
tree.go
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user