Skip to content

Commit 6728f2b

Browse files
committed
Moves variable for clarity.
1 parent 2ba301a commit 6728f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parallel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
}
124124

125125
var that = this;
126-
var newOp = new Operation();
127126
var startedOps = 0;
128127
var doneOps = 0;
129128
function done() {
@@ -134,6 +133,7 @@
134133
}
135134
}
136135

136+
var newOp = new Operation();
137137
this.operation.then(function () {
138138
for (; startedOps - doneOps < that.options.maxWorkers && startedOps < that.data.length; ++startedOps) {
139139
spawnWorker(startedOps);

0 commit comments

Comments
 (0)