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

Remove flatMap because it is now deprecated in Swift 4.1 #71

Merged
merged 1 commit into from
May 11, 2018

Conversation

sebleclerc
Copy link
Contributor

With the release of Xcode 9.3 / Swift 4.1, Sequence.flatMap is deprecated for the usage of removing nil elements in a list. It has been replaced with new Sequence.compactMap as per this doc link:
https://github.com/apple/swift-evolution/blob/master/proposals/0187-introduce-filtermap.md

This commit removes the compiler warning.

@facebook-github-bot
Copy link
Contributor

@sebleclerc I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

@nlutsenko nlutsenko merged commit 5d06920 into BoltsFramework:master May 11, 2018
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.

3 participants