Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants