fix golint errors

This commit is contained in:
2026-02-12 18:00:32 +03:00
parent a058b622e3
commit ccabeee1f1
10 changed files with 74 additions and 28 deletions
+1 -1
View File
@@ -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