mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +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;
|
||||
function partDone() {
|
||||
finished++;
|
||||
if (finished === requests) {
|
||||
// all requests have finished
|
||||
if (requests === finished) {
|
||||
done();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user