Skip to content

Commit c94c6de

Browse files
committed
Merge pull request #587 from avivr/remove-unused-variable-from-api
Remove unnecessary `counted` variable in api.js
2 parents f63711f + 5e557e9 commit c94c6de

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

api.js

-6
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,7 @@ Api.prototype.run = function (files) {
187187

188188
return new Promise(function (resolve) {
189189
tests.forEach(function (test) {
190-
var counted = false;
191-
192190
function tryRun() {
193-
if (counted) {
194-
return;
195-
}
196-
197191
if (++statsCount === self.fileCount) {
198192
self.emit('ready');
199193

0 commit comments

Comments
 (0)