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

Refactor unwrap() with Match #1164

Open
wants to merge 7 commits into
base: v6
Choose a base branch
from

Conversation

nControl88
Copy link

First attempt to refactor unwrap() with Match

Related PRs

#1144

@simsekgokhan
Copy link
Contributor

Thx a lot for the effort, looks good to me. And if the main purpose of this task was not to exit or panic, then we would use match (or ? operator) to return the error to caller (or handle the error) instead of expect/unwrap which stops the program in case of error. FYI.

In line with the Tool Scrubber Guild lessons, went
for match / ? rather than expect
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