Skip to content

Commit c989f3d

Browse files
chore(internal): codegen related update
1 parent f5b1d5d commit c989f3d

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
@@ -743,9 +743,9 @@ export class Spotify {
743743
}
744744
}
745745

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

0 commit comments

Comments
 (0)