summaryrefslogtreecommitdiff
path: root/lib/retry.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/retry.js')
-rw-r--r--lib/retry.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/retry.js b/lib/retry.js
index 391a4fa..390fd55 100644
--- a/lib/retry.js
+++ b/lib/retry.js
@@ -1,7 +1,12 @@
-import noop from 'lodash/noop';
-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