mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Fix all lib/ files with ESLint rules with 0 errors.
This commit is contained in:
parent
994977ea94
commit
434f63b3a9
69 changed files with 793 additions and 764 deletions
|
@ -41,7 +41,7 @@ function shuffleWeighted(records) {
|
|||
|
||||
function pick(records, sum) {
|
||||
var rand = Math.random() * sum
|
||||
, counter = 0
|
||||
var counter = 0
|
||||
|
||||
for (var i = 0, l = records.length; i < l; ++i) {
|
||||
counter += records[i].weight
|
||||
|
@ -117,7 +117,7 @@ srv.attempt = function(records, fn) {
|
|||
}
|
||||
|
||||
return fn(records[i]).catch(srv.NEXT, function() {
|
||||
return next(++i)
|
||||
return next(i + 1)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue