diff --git a/dist/index.js b/dist/index.js index 44395ac..b527b2d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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'); } } diff --git a/src/retry-helper.ts b/src/retry-helper.ts index f99c533..bbc20a1 100644 --- a/src/retry-helper.ts +++ b/src/retry-helper.ts @@ -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') } }