We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2543278 commit 8cc484fCopy full SHA for 8cc484f
1 file changed
src/client.ts
@@ -667,9 +667,9 @@ export class ImageKit {
667
}
668
669
670
- // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
671
- // just do what it says, but otherwise calculate a default
672
- if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
+ // If the API asks us to wait a certain amount of time, just do what it
+ // says, but otherwise calculate a default
+ if (timeoutMillis === undefined) {
673
const maxRetries = options.maxRetries ?? this.maxRetries;
674
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
675
0 commit comments