mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
fix golint
This commit is contained in:
parent
c639b3ef26
commit
2eb3ba8b52
4
tree.go
4
tree.go
@ -412,7 +412,7 @@ type skippedNode struct {
|
||||
// given path.
|
||||
func (n *node) getValue(path string, params *Params, unescape bool) (value nodeValue) {
|
||||
skippedNodes := make([]skippedNode, 0, countSections(path)) // Caching the latest nodes
|
||||
var globalParamsCount int16 = 0
|
||||
var globalParamsCount int16
|
||||
|
||||
walk: // Outer loop for walking the tree
|
||||
for {
|
||||
@ -491,7 +491,7 @@ walk: // Outer loop for walking the tree
|
||||
|
||||
// Handle wildcard child, which is always at the end of the array
|
||||
n = n.children[len(n.children)-1]
|
||||
globalParamsCount += 1
|
||||
globalParamsCount++
|
||||
|
||||
switch n.nType {
|
||||
case param:
|
||||
|
Loading…
x
Reference in New Issue
Block a user