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

Use built-in Result initializer to simplify Result mapping #82

Conversation

finebel
Copy link

@finebel finebel commented May 1, 2024

I would suggest using Result { ... } instead of performing the mapping via do-catch manually. This way the code is easier to read and more aligned with various other parts of the codebase, where Result { ... } is used as well.

@caiozullo
Copy link
Member

Hi @finebel, we're not accepting PRs for this codebase. Thank you!

@caiozullo caiozullo closed this May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants