mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01: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:
parent
c93ffa5a79
commit
bb4de15ff2
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user