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

Cleanup package:http utils #1011

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

parlough
Copy link
Member

@parlough parlough commented Aug 23, 2023

  1. Simplifies mapToQuery to avoid intermediate list building, and the unnecessary/repetitive null checking on the encoding parameter. This does mean a null encoding is no longer accepted, but the API isn't exposed as part of the package and all usages of it pass in non-null values.
  2. Remove now unnecessary [charset] may not be null doc comment now that charset is non-nullable.
  3. Uses a case clause to promote input to TypedData.

@parlough parlough marked this pull request as ready for review August 23, 2023 00:57
@parlough parlough force-pushed the misc/cleanup-utils branch from 8259f36 to 542c60b Compare August 30, 2023 01:39
Copy link
Collaborator

@brianquinlan brianquinlan left a comment

Choose a reason for hiding this comment

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

Nice!

@brianquinlan brianquinlan merged commit d7e4375 into dart-lang:master Sep 14, 2023
@parlough parlough deleted the misc/cleanup-utils branch September 14, 2023 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants