mirror of
https://github.com/tendermint/tendermint.git
synced 2025-12-23 06:15:19 +00:00
Fixed linter error
This commit is contained in:
@@ -209,8 +209,10 @@ func dedupMatchEvents(conditions []query.Condition) ([]query.Condition, bool) {
|
||||
}
|
||||
|
||||
func checkHeightConditions(heightInfo HeightInfo, keyHeight int64) bool {
|
||||
if heightInfo.heightRange.Key != "" && !checkBounds(heightInfo.heightRange, keyHeight) {
|
||||
if heightInfo.heightRange.Key != "" {
|
||||
if !checkBounds(heightInfo.heightRange, keyHeight) {
|
||||
return false
|
||||
}
|
||||
} else {
|
||||
if heightInfo.height != 0 && keyHeight != heightInfo.height {
|
||||
return false
|
||||
|
||||
@@ -107,8 +107,10 @@ func dedupHeight(conditions []query.Condition) (dedupConditions []query.Conditio
|
||||
}
|
||||
|
||||
func checkHeightConditions(heightInfo HeightInfo, keyHeight int64) bool {
|
||||
if heightInfo.heightRange.Key != "" && !checkBounds(heightInfo.heightRange, keyHeight) {
|
||||
if heightInfo.heightRange.Key != "" {
|
||||
if !checkBounds(heightInfo.heightRange, keyHeight) {
|
||||
return false
|
||||
}
|
||||
} else {
|
||||
if heightInfo.height != 0 && keyHeight != heightInfo.height {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user