[#498] audit: skip unnecessary statement

Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>
This commit is contained in:
ZhangTao1596 2021-04-30 12:40:53 +08:00 committed by Alex Vanin
parent 59de521fd1
commit 2877a343c3

View file

@ -11,11 +11,9 @@ func nextRandUint64(n uint64, exclude map[uint64]struct{}) uint64 {
ind := randUint64(n - ln)
for i := uint64(0); ; i++ {
if i >= ind {
if _, ok := exclude[i]; !ok {
return i
}
for i := ind; ; i++ {
if _, ok := exclude[i]; !ok {
return i
}
}
}