mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
autopilot: append instead of appends in a loop
This commit is contained in:
@@ -139,10 +139,7 @@ func assertChoice(w []float64, iterations int) bool {
|
||||
}
|
||||
|
||||
// The sum of choices must be exactly iterations of course.
|
||||
if totalChoices != iterations {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return totalChoices == iterations
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user