Skip to content

Commit 68a29e2

Browse files
chore(internal): codegen related update
1 parent 51f6ade commit 68a29e2

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
@@ -592,9 +592,9 @@ export class ScanDocuments {
592592
}
593593
}
594594

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

0 commit comments

Comments
 (0)