usually, '10 === finished' would be considered yoda
but in this case, with this naming of variables
it makes a lot more sense this way
This commit is contained in:
jomo 2015-05-26 22:21:07 +02:00
parent c93ffa5a79
commit bb4de15ff2

View File

@ -311,8 +311,7 @@ describe("Crafatar", function() {
var finished = 0; var finished = 0;
function partDone() { function partDone() {
finished++; finished++;
if (finished === requests) { if (requests === finished) {
// all requests have finished
done(); done();
} }
} }