From bb4de15ff21d44157a2cbb56805c6dc1fa1c3502 Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 26 May 2015 22:21:07 +0200 Subject: [PATCH] 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 --- test/test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 89abea5..60cb32a 100644 --- a/test/test.js +++ b/test/test.js @@ -311,8 +311,7 @@ describe("Crafatar", function() { var finished = 0; function partDone() { finished++; - if (finished === requests) { - // all requests have finished + if (requests === finished) { done(); } }