fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user