Skip to content

Remove bad uses of Const in community build #10569

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

Conversation

nicolasstucki
Copy link
Contributor

  • Use unliftOrError to emit an error rather than crashing with a MatchError
  • Use unlift to use a simpler pattern match on Option. This one can be checked for exhaustivity.

Part of #10516

* Use `unliftOrError` to emit an error rather than crashing with a `MatchError`
* Use `unlift` to use a simpler pattern match on `Option`. This one can be checked for exhaustivity.
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@nicolasstucki nicolasstucki merged commit 6a6a876 into scala:master Dec 1, 2020
@nicolasstucki nicolasstucki deleted the remove-bad-uses-of-Const-in-community-build branch December 1, 2020 08:26
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