Skip to content

Commit 90ac5d3

Browse files
chore(internal): codegen related update
1 parent 6e1c564 commit 90ac5d3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,9 @@ export abstract class APIClient {
618618
}
619619
}
620620

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

0 commit comments

Comments
 (0)