Remove redundant condition

This commit is contained in:
Olivier Poitrey 2017-09-11 14:52:32 -07:00
parent 3ac71fc58d
commit 9d194eb6f5
1 changed files with 2 additions and 4 deletions

View File

@ -31,10 +31,8 @@ func (s RandomSampler) Sample(lvl Level) bool {
if s <= 0 {
return false
}
if s > 0 {
if rand.Intn(int(s)) != 0 {
return false
}
if rand.Intn(int(s)) != 0 {
return false
}
return true
}