fix golint issues (#459)

This commit is contained in:
Kevin Wan
2021-02-09 14:10:38 +08:00
committed by GitHub
parent 03b5fd4a10
commit 211f3050e9
2 changed files with 8 additions and 8 deletions

View File

@@ -143,11 +143,11 @@ func add(nd *node, route string, item interface{}) error {
}
return ErrInvalidState
} else {
child := newNode(nil)
children[token] = child
return add(child, route[i+1:], item)
}
child := newNode(nil)
children[token] = child
return add(child, route[i+1:], item)
}
}