diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-06-07 18:32:02 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-06-07 18:32:02 -0700 |
commit | 428a3004417c1c456dceecc1ba1c68afe24122fc (patch) | |
tree | 07b74085c7e31740909e24ad2f35f5f239cc2ab9 /lib/doWhilst.js | |
parent | 6932085d7ca452e8c081ea709d8994fcb0246e27 (diff) | |
download | async-428a3004417c1c456dceecc1ba1c68afe24122fc.tar.gz |
fix new lint errors
Diffstat (limited to 'lib/doWhilst.js')
-rw-r--r-- | lib/doWhilst.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/doWhilst.js b/lib/doWhilst.js index c23fe8d..96c4664 100644 --- a/lib/doWhilst.js +++ b/lib/doWhilst.js @@ -22,9 +22,9 @@ import whilst from './whilst'; * will be passed an error and any arguments passed to the final `fn`'s * callback. Invoked with (err, [results]); */ -export default function doWhilst(iteratee, test, cb) { +export default function doWhilst(fn, test, callback) { var calls = 0; - return whilst(function() { + whilst(function() { return ++calls <= 1 || test.apply(this, arguments); - }, iteratee, cb); + }, fn, callback); } |