summaryrefslogtreecommitdiff
path: root/lib/doWhilst.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doWhilst.js')
-rw-r--r--lib/doWhilst.js6
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);
}