Skip to content

Commit 7fd0cfd

Browse files
chore(internal): codegen related update
1 parent 9c81c01 commit 7fd0cfd

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
@@ -632,9 +632,9 @@ export abstract class APIClient {
632632
}
633633
}
634634

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

0 commit comments

Comments
 (0)