diff --git a/dist/index.js b/dist/index.js index f011518..5e2e99c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -292,9 +292,6 @@ function validateInputs() { if ((!TIMEOUT_MINUTES && !TIMEOUT_SECONDS) || (TIMEOUT_MINUTES && TIMEOUT_SECONDS)) { throw new Error('Must specify either timeout_minutes or timeout_seconds inputs'); } - if (TIMEOUT_SECONDS && TIMEOUT_SECONDS < RETRY_WAIT_SECONDS) { - throw new Error("timeout_seconds " + TIMEOUT_SECONDS + "s less than retry_wait_seconds " + RETRY_WAIT_SECONDS + "s"); - } return [2 /*return*/]; }); }); diff --git a/src/index.ts b/src/index.ts index 5dc4067..a9acda1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,12 +49,6 @@ async function validateInputs() { if ((!TIMEOUT_MINUTES && !TIMEOUT_SECONDS) || (TIMEOUT_MINUTES && TIMEOUT_SECONDS)) { throw new Error('Must specify either timeout_minutes or timeout_seconds inputs'); } - - if (TIMEOUT_SECONDS && TIMEOUT_SECONDS < RETRY_WAIT_SECONDS) { - throw new Error( - `timeout_seconds ${TIMEOUT_SECONDS}s less than retry_wait_seconds ${RETRY_WAIT_SECONDS}s` - ); - } } function getTimeout(): number {