Skip to content

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

Merged
chrisbobbe merged 3 commits intozulip:masterfrom
gnprice:pr-restart-events
Jun 11, 2021
Merged

accountsReducer [nfc]: Followups on handling restart events#4794
chrisbobbe merged 3 commits intozulip:masterfrom
gnprice:pr-restart-events

Conversation

@gnprice
Copy link
Copy Markdown
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
Copy Markdown
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