Skip to content

Commit

Permalink
Remove else block
Browse files Browse the repository at this point in the history
  • Loading branch information
ip2location committed Sep 22, 2021
1 parent 5139a04 commit e0c0699
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ip2proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,12 +967,12 @@ func (d *DB) query(ipAddress string, mode uint32) (ip2proxyRecord, error) {
}

return x, nil
}

if ipNo.Cmp(ipFrom) < 0 {
high = mid - 1
} else {
if ipNo.Cmp(ipFrom) < 0 {
high = mid - 1
} else {
low = mid + 1
}
low = mid + 1
}
}
return x, nil
Expand Down

0 comments on commit e0c0699

Please sign in to comment.