diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 16:39:20 -0500 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 17:19:07 -0500 |
commit | 90656cfd3b6750397a1f5e9539323391cf0e50c6 (patch) | |
tree | 98034c45b789f46bdec3f04e3cdec8b9fb4274c3 /lib/waterfall.js | |
parent | 1448f24a5e7d5c4b9ff56ef573d35291511c2a71 (diff) | |
download | async-90656cfd3b6750397a1f5e9539323391cf0e50c6.tar.gz |
Set up async bundles
Diffstat (limited to 'lib/waterfall.js')
-rw-r--r-- | lib/waterfall.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/waterfall.js b/lib/waterfall.js index d82d344..601c569 100644 --- a/lib/waterfall.js +++ b/lib/waterfall.js @@ -3,7 +3,7 @@ import isArray from 'lodash/lang/isArray'; import noop from 'lodash/utility/noop'; import once from 'lodash/function/once'; -import restParam from 'lodash/function/restParam'; +import rest from 'lodash/function/rest'; import ensureAsync from './ensureAsync'; import iterator from './iterator'; @@ -14,7 +14,7 @@ export default function(tasks, cb) { if (!tasks.length) return cb(); function wrapIterator(iterator) { - return restParam(function(err, args) { + return rest(function(err, args) { if (err) { cb.apply(null, [err].concat(args)); } else { |