mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +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.
|
// given path.
|
||||||
func (n *node) getValue(path string, params *Params, unescape bool) (value nodeValue) {
|
func (n *node) getValue(path string, params *Params, unescape bool) (value nodeValue) {
|
||||||
skippedNodes := make([]skippedNode, 0, countSections(path)) // Caching the latest nodes
|
skippedNodes := make([]skippedNode, 0, countSections(path)) // Caching the latest nodes
|
||||||
var globalParamsCount int16 = 0
|
var globalParamsCount int16
|
||||||
|
|
||||||
walk: // Outer loop for walking the tree
|
walk: // Outer loop for walking the tree
|
||||||
for {
|
for {
|
||||||
@ -491,7 +491,7 @@ walk: // Outer loop for walking the tree
|
|||||||
|
|
||||||
// Handle wildcard child, which is always at the end of the array
|
// Handle wildcard child, which is always at the end of the array
|
||||||
n = n.children[len(n.children)-1]
|
n = n.children[len(n.children)-1]
|
||||||
globalParamsCount += 1
|
globalParamsCount++
|
||||||
|
|
||||||
switch n.nType {
|
switch n.nType {
|
||||||
case param:
|
case param:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user