New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make URLSearchParams mergeable #734
Conversation
let searchParams; | ||
let {searchParams} = options; | ||
delete options.searchParams; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from the lasting if
. Just a more readable code, behavior is the same.
methods: new Set(), | ||
statusCodes: new Set(), | ||
errorCodes: new Set(), | ||
maxRetryAfter: undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performance nitpick.
@@ -77,7 +78,7 @@ const preNormalize = (options, defaults) => { | |||
} | |||
} | |||
|
|||
if (options.gotTimeout) { | |||
if (!options.retry.maxRetryAfter && options.gotTimeout) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small fix.
Fixes #718
Checklist