From cf03f7c7ebf55b3619782980969a71c0cb4e66b7 Mon Sep 17 00:00:00 2001
From: eric sciple <ericsciple@users.noreply.github.com>
Date: Thu, 12 Dec 2019 12:57:03 -0500
Subject: [PATCH] .

---
 dist/index.js       | 2 +-
 src/retry-helper.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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')
     }
   }