Skip to content

Commit 862a3cc

Browse files
chore(internal): codegen related update
1 parent a81a9a6 commit 862a3cc

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
@@ -605,9 +605,9 @@ export class Grid {
605605
}
606606
}
607607

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

0 commit comments

Comments
 (0)