diff options
-rw-r--r-- | lib/retry.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/retry.js b/lib/retry.js index b3212c6..390fd55 100644 --- a/lib/retry.js +++ b/lib/retry.js @@ -1,7 +1,12 @@ -import constant from 'lodash/constant'; import noop from './internal/noop'; import wrapAsync from './internal/wrapAsync'; +function constant(value) { + return function () { + return value; + } +} + /** * Attempts to get a successful response from `task` no more than `times` times * before returning an error. If the task is successful, the `callback` will be |