Skip to content

Sync local: Refactor to avoid unwrap() #110

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

Merged
merged 1 commit into from
Jul 15, 2025
Merged

Conversation

simolus3
Copy link
Contributor

I noticed this while checking the code again for raw tables - we can avoid a bunch of runtime unwrap() calls by refactoring the code to use pattern matching and Option::insert. This makes impossible states unrepresentable and removes the runtime check.

@simolus3 simolus3 requested a review from rkistner July 15, 2025 08:31
@simolus3 simolus3 merged commit a06684b into main Jul 15, 2025
21 checks passed
@simolus3 simolus3 deleted the small-sync-local-refactor branch July 15, 2025 08:55
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