-
-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flags reducer: Assert
flags
present on EVENT_NEW_MESSAGE action.
Much like we did for the various `unread` sub-reducers in the previous commit, this simplifies a bit the potential paths through this code. There was a test for this impossible case; remove that. While we're here, also remove a similar impossible check on `messages` being falsy, as if we got an EVENT_UPDATE_MESSAGE_FLAGS action with no `messages` property.
- Loading branch information
1 parent
54ae694
commit b2433dc
Showing
2 changed files
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters