Skip to content

Commit 3803e08

Browse files
author
Ilya Shatokhin
committed
Fixed incorrect handling of arguments in "auto" in case of empty callback
1 parent a92b163 commit 3803e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@
510510
};
511511

512512
async.auto = function (tasks, concurrency, callback) {
513-
if (!callback) {
513+
if (typeof arguments[1] === 'function') {
514514
// concurrency is optional, shift the args.
515515
callback = concurrency;
516516
concurrency = null;

0 commit comments

Comments
 (0)