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

accountsReducer [nfc]: Followups on handling restart events #4794

Merged
merged 3 commits into from
Jun 11, 2021

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Jun 11, 2021

These are some small tweaks in the handy new restart-event implementation added in #4707.

gnprice added 3 commits June 10, 2021 17:47
This helps make it clear where this particular string value
is coming from.
Just as the early-return pattern usually does, this puts the
exceptional case's condition and body together, and lets the
happy normal case read straight vertically down the screen.

Here, it also eliminates a ternary operator.
And tighten the comment here, now that the details live there.
@chrisbobbe
Copy link
Contributor

LGTM, thanks! Merged.

@gnprice gnprice deleted the pr-restart-events branch June 11, 2021 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants