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

Fix Swift 4.1 Warning #207

Merged
merged 8 commits into from
Jul 24, 2018
Merged

Fix Swift 4.1 Warning #207

merged 8 commits into from
Jul 24, 2018

Conversation

cocojoe
Copy link
Member

@cocojoe cocojoe commented Jul 20, 2018

This fixes a compiler warning if the project is compiled as 4.1.

flatMap is Swift 3.x
compactMap is only available in 4.1, flatMap will produce a compiler warning in Swift 4.1

The ! to ? came up in the original PR, although I think this was caused by another change in the original PR that I reverted. However, the style in this PR is more consistent with the rest of the spec.

The project should be 3.x, seems to have accidentally been update in the last PR, so coincidentally this fixes it.

guykogus
guykogus previously approved these changes Jul 24, 2018
lbalmaceda
lbalmaceda previously approved these changes Jul 24, 2018
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

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

🆗

@cocojoe cocojoe dismissed stale reviews from lbalmaceda and guykogus via 403ac64 July 24, 2018 13:50
@cocojoe
Copy link
Member Author

cocojoe commented Jul 24, 2018

Kind of strange 9.4.1 throws "Gem::FilePermissionError: You don't have write permissions for the"

@guykogus
Copy link

Could you use bundle install --development?

@cocojoe
Copy link
Member Author

cocojoe commented Jul 24, 2018

It should work anyway, feels more likely image is broken, will roll back to 9.4.0

@cocojoe cocojoe changed the title Updated xcode 9.4 Fix Swift 4.1 Warning Jul 24, 2018
@cocojoe
Copy link
Member Author

cocojoe commented Jul 24, 2018

@lbalmaceda ping

@cocojoe cocojoe merged commit 5e621ab into master Jul 24, 2018
@cocojoe cocojoe added this to the vNext milestone Jul 26, 2018
@cocojoe cocojoe deleted the updated-xcode-9.4 branch July 26, 2018 09:33
@cocojoe cocojoe mentioned this pull request Jul 26, 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.

None yet

3 participants