Skip to content

Refactor preference parsing to use let-else for cleaner control flow - #809

Closed
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:simplify-input-validation-in-add_prefs
Closed

moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:simplify-input-validation-in-add_prefs

Conversation

@moritz-gross

Copy link
Copy Markdown
Collaborator

should not work in case of is_badvalue / is_null / is_none anyway.

@moritz-gross

Copy link
Copy Markdown
Collaborator Author

TODO: understand this more and potentially add unit tests for this

@NSoiffer

Copy link
Copy Markdown
Collaborator

The checks were added here: 8e52c38

@moritz-gross

Copy link
Copy Markdown
Collaborator Author

tbh I'm not really sure about this, and it's pretty low ROI anyway.
Let's focus on other stuff first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Coding in Rust

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants