Skip to content

Commit 77a4e10

Browse files
chore(internal): codegen related update
1 parent e372066 commit 77a4e10

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,9 +562,9 @@ export class Isaacus {
562562
}
563563
}
564564

565-
// If the API asks us to wait a certain amount of time (and it's a reasonable amount),
566-
// just do what it says, but otherwise calculate a default
567-
if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
565+
// If the API asks us to wait a certain amount of time, just do what it
566+
// says, but otherwise calculate a default
567+
if (timeoutMillis === undefined) {
568568
const maxRetries = options.maxRetries ?? this.maxRetries;
569569
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
570570
}

0 commit comments

Comments
 (0)