mirror of
https://github.com/gin-gonic/gin.git
synced 2026-01-11 17:17:04 +08:00
feat: format code
This commit is contained in:
parent
86831de61c
commit
b33f331d71
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