We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5b1d5d commit c989f3dCopy full SHA for c989f3d
1 file changed
src/client.ts
@@ -743,9 +743,9 @@ export class Spotify {
743
}
744
745
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)) {
+ // If the API asks us to wait a certain amount of time, just do what it
+ // says, but otherwise calculate a default
+ if (timeoutMillis === undefined) {
749
const maxRetries = options.maxRetries ?? this.maxRetries;
750
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
751
0 commit comments