Explorar o código

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
jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
bb4de15ff2
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      test/test.js

+ 1 - 2
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();
         }
       }