fix golint errors
This commit is contained in:
@@ -54,7 +54,7 @@ func weightedSelect(candidates []candidate, preferOlder bool, maxYearsBack int)
|
||||
total += score
|
||||
}
|
||||
|
||||
r := rand.Float64() * total
|
||||
r := rand.Float64() * total //nolint:gosec // non-cryptographic use
|
||||
var cumulative float64
|
||||
for i, s := range scores {
|
||||
cumulative += s
|
||||
|
||||
Reference in New Issue
Block a user