Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ function dirFiles (dir, callback, acc) {
// (this should not happen as long as calls do the necessary checks)
if (err) throw err;

if (files.length === 0) {
done();
return;
}

acc.remaining += files.length;
done();
files.forEach(file => {
let name = path.join(dir, file);
fs.stat(name, (err, stats) => {
Expand All @@ -131,7 +137,6 @@ function dirFiles (dir, callback, acc) {
}
});
});
done();
});
}

Expand Down