diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-10-15 12:12:20 -0400 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-10-15 20:03:12 -0400 |
commit | 74c01fe6d46d978eeabc64716634dee1beb77c68 (patch) | |
tree | c5540831b6e55034871ec809195b82b5ad19d19a /lib | |
parent | 509e3a796fe4689f43206178ff5b899c71e96ed8 (diff) | |
download | async-74c01fe6d46d978eeabc64716634dee1beb77c68.tar.gz |
Add short circuit test for every
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/createTester.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/internal/createTester.js b/lib/internal/createTester.js index 36223e6..b37d0f1 100644 --- a/lib/internal/createTester.js +++ b/lib/internal/createTester.js @@ -18,9 +18,10 @@ export default function _createTester(eachfn, check, getResult) { if (err) cb(err); else cb(err, getResult(true, x)); cb = iteratee = false; - return callback(err, breakLoop); + callback(err, breakLoop); + } else { + callback(); } - callback(); }); } if (arguments.length > 3) { |