mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-11 09:06:56 +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")
|
w := performRequest(router, http.MethodGet, "/not-found")
|
||||||
assert.Equal(t, http.StatusNotFound, w.Code)
|
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
|
// extra trailing slash if a leaf exists for that path
|
||||||
value.tsr = path == "/" ||
|
value.tsr = path == "/" ||
|
||||||
(len(prefix) == len(path)+1 && prefix[len(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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user