This commit is contained in:
2026-08-12 03:32:24 +00:00
parent 31ac7dcc0b
commit fb3362783c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ export class ExponentialBackoff {
// Validate the max attempts
assertIsFinite('maxAttempts', options.maxAttempts);
assertIsInteger('maxAttempts', options.maxAttempts);
assertIsHigherThan('maxAttempts', options.maxAttempts, 0);
assertIsHigherThan('maxAttempts', options.maxAttempts, -1);
// Validate the base delay
assertIsFinite('baseDelay', options.baseDelay);