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

add multiple states #8

Merged
merged 7 commits into from
Dec 21, 2022
Merged

add multiple states #8

merged 7 commits into from
Dec 21, 2022

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Dec 20, 2022

No description provided.

@anonrig anonrig mentioned this pull request Dec 20, 2022
20 tasks
if (encoding_override.has_value()) {
encoding = encoding_override.value();
}
encoding = encoding_override.value_or(UTF8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using value_or is definitively a plus in my view. As pointed out elsewhere, much of this initialization code should be in the constructor initializer list.

@anonrig anonrig merged commit 9859fe5 into main Dec 21, 2022
@anonrig anonrig deleted the feat/authority-path branch December 25, 2022 17:32
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