mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
no yoda
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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user