Merge PR #5656: Make golangci-lint happy again
This commit is contained in:
parent
5ee65cb897
commit
8a74dcafb5
|
@ -337,13 +337,14 @@ func ParseHTTPArgsWithLimit(r *http.Request, defaultLimit int) (tags []string, p
|
|||
}
|
||||
|
||||
var tag string
|
||||
if key == types.TxHeightKey {
|
||||
switch key {
|
||||
case types.TxHeightKey:
|
||||
tag = fmt.Sprintf("%s=%s", key, value)
|
||||
} else if key == TxMinHeightKey {
|
||||
case TxMinHeightKey:
|
||||
tag = fmt.Sprintf("%s>=%s", types.TxHeightKey, value)
|
||||
} else if key == TxMaxHeightKey {
|
||||
case TxMaxHeightKey:
|
||||
tag = fmt.Sprintf("%s<=%s", types.TxHeightKey, value)
|
||||
} else {
|
||||
default:
|
||||
tag = fmt.Sprintf("%s='%s'", key, value)
|
||||
}
|
||||
tags = append(tags, tag)
|
||||
|
|
Loading…
Reference in New Issue