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

simplify fix for unwrap Result bug #1430

Merged
merged 1 commit into from
May 9, 2023
Merged

simplify fix for unwrap Result bug #1430

merged 1 commit into from
May 9, 2023

Conversation

robstoll
Copy link
Owner

@robstoll robstoll commented May 8, 2023


I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.

@robstoll
Copy link
Owner Author

robstoll commented May 8, 2023

@JordanllHarper see how I simplified it. Note especially, that I use it inside of Option.map, you were still using this.exceptionOrNull()

@robstoll robstoll merged commit c2ca370 into main May 9, 2023
@robstoll robstoll deleted the fix-result-unwrap-bug branch May 9, 2023 04:59
@JordanllHarper
Copy link
Contributor

Ah I see with the fix now. My thoughts were a little misguided when I experimented with the idea of doing the exception or null check manually. Thank you for the learning experience!

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