Skip to content

[gardening] Use Optional.map over flatMap where appropriate #346

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 28, 2018

Conversation

…iate

The initializers used here are not optional ones, so there is no need to use `flatMap`.
@ikesyo ikesyo changed the title [Dispatch][gardening] Use Optional.map over flatMap where appropriate [gardening] Use Optional.map over flatMap where appropriate Mar 10, 2018
@ikesyo
Copy link
Member Author

ikesyo commented Mar 10, 2018

@swift-ci please test

@ikesyo ikesyo merged commit f151b33 into swiftlang:master Mar 28, 2018
@ikesyo ikesyo deleted the optional-map-over-flatmap branch March 28, 2018 12:25
ktopley-apple pushed a commit that referenced this pull request Dec 6, 2018
[gardening] Use `Optional.map` over `flatMap` where appropriate

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
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.

3 participants