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,11 +31,9 @@ func (s RandomSampler) Sample(lvl Level) bool {
if s <= 0 {
return false
}
if s > 0 {
if rand.Intn(int(s)) != 0 {
return false
}
}
return true
}