Skip to content

Refactor if statements in URL.swift #2034

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

Merged
merged 1 commit into from
Mar 23, 2019
Merged

Refactor if statements in URL.swift #2034

merged 1 commit into from
Mar 23, 2019

Conversation

Luigi123
Copy link
Contributor

It's my first PR so if there's something wrong (name of the branch, commit message, etc) please let me know.
Next time I'll to make something more impactful. 🙇

I refactored some of the if statements in URL.swift to be guard instead.
This made the code shorter and easier to read.
@ikesyo
Copy link
Member

ikesyo commented Mar 23, 2019

@swift-ci Please test

Copy link
Member

@ikesyo ikesyo left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! This looks good to me 👍

Can you also submit a pull request on apple/swift for porting this to the Foundation overlay?

https://github.com/apple/swift/blob/master/stdlib/public/Darwin/Foundation/URL.swift

@ikesyo ikesyo merged commit 0c82d32 into swiftlang:master Mar 23, 2019
@Luigi123
Copy link
Contributor Author

@ikesyo Sure! I actually wasn't sure where to send the PR, so thank you very much!

@Luigi123
Copy link
Contributor Author

@ikesyo Done! Sorry it took me a while, here's the link to the new PR: swiftlang/swift#23515

millenomi pushed a commit that referenced this pull request Nov 11, 2020
I refactored some of the if statements in URL.swift to be guard instead.
This made the code shorter and easier to read.
This mirrors my commit on swift-corelibs-foundation (PR #2034)
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.

2 participants