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 error handling with ? and ok_or_else #20

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

feds01
Copy link
Contributor

@feds01 feds01 commented Jan 15, 2025

This PR simplifies the error handling in the Bundle::new and
Bundle::get_translation functions by using the ? operator and the
ok_or_else infix method available for Option<T>.

This makes the code more concise and easier to read.

This commit simplifies the error handling in the `Bundle::new` and
`Bundle::get_translation` functions by using the `?` operator and the
`ok_or_else` infix method available for `Option<T>`.

This makes the code more concise and easier to read.
@feds01 feds01 requested a review from a team as a code owner January 15, 2025 16:30
@feds01
Copy link
Contributor Author

feds01 commented Jan 28, 2025

@dooferlad I don't quite have write access, please feel free to merge this 😄

@dooferlad dooferlad merged commit 8119d65 into kraken-tech:main Jan 28, 2025
1 check passed
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