-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move getFaviconClass out of render and simplify
While I'm not sure if this is faster than three nested .some calls, it shouldn't be a lot slower and I'd say it makes the code at least somewhat more clear. This does no longer prioritize blog over review, but that probably doesn't matter since I'm not sure those can exist at the same time for the same entity type and even if they could, something being a blog and review for the same entity at the same time would just be bad data, so it's irrelevant which icon it shows.
- Loading branch information
1 parent
18bd588
commit b4047b5
Showing
1 changed file
with
39 additions
and
51 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