pull/104/head
eric sciple 5 years ago
parent bdbd8b81c2
commit cf03f7c7eb

2
dist/index.js vendored

@ -9807,7 +9807,7 @@ class RetryHelper {
this.maxAttempts = maxAttempts;
this.minSeconds = Math.floor(minSeconds);
this.maxSeconds = Math.floor(maxSeconds);
if (this.minSeconds > this.maxAttempts) {
if (this.minSeconds > this.maxSeconds) {
throw new Error('min seconds should be less than or equal to max seconds');
}
}

@ -17,7 +17,7 @@ export class RetryHelper {
this.maxAttempts = maxAttempts
this.minSeconds = Math.floor(minSeconds)
this.maxSeconds = Math.floor(maxSeconds)
if (this.minSeconds > this.maxAttempts) {
if (this.minSeconds > this.maxSeconds) {
throw new Error('min seconds should be less than or equal to max seconds')
}
}

Loading…
Cancel
Save