Skip to content

Commit e0c0699

Browse files
committed
Remove else block
1 parent 5139a04 commit e0c0699

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ip2proxy.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,12 +967,12 @@ func (d *DB) query(ipAddress string, mode uint32) (ip2proxyRecord, error) {
967967
}
968968

969969
return x, nil
970+
}
971+
972+
if ipNo.Cmp(ipFrom) < 0 {
973+
high = mid - 1
970974
} else {
971-
if ipNo.Cmp(ipFrom) < 0 {
972-
high = mid - 1
973-
} else {
974-
low = mid + 1
975-
}
975+
low = mid + 1
976976
}
977977
}
978978
return x, nil

0 commit comments

Comments
 (0)