autopilot: append instead of appends in a loop
This commit is contained in:
1 parent
28c2ef12b2
commit
0679d1dd4b
2 files changed
+3
-7
No files matched your search
@@ -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