-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): Rewrite a bit
TimelineEventHandler::add
.
This patch renames `TimelineEventHandler::add` to `add_new_item`. This patch also removes the `should_add` argument. The `add_new_item` is called conditionally everytime. I believe this is much cleaner. Otherwise the method should have been called `maybe_add_new_item` with a return type or something that indicates whether the item is added. This patch makes it clear and remove one possible state in `add_new_item`.
- Loading branch information
Showing
1 changed file
with
48 additions
and
32 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