Skip to content
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

Merged
merged 4 commits into from Feb 24, 2019

Conversation

szmarczak
Copy link
Collaborator

Fixes #718

Checklist

  • I have read the documentation.
  • I have included a pull request description of my changes.
  • I have included some tests.
  • If it's a new feature, I have included documentation updates.

let searchParams;
let {searchParams} = options;
delete options.searchParams;

Copy link
Collaborator Author

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
Copy link
Collaborator Author

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) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small fix.

@sindresorhus sindresorhus merged commit 95c7c2c into sindresorhus:master Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants