0
0
Fork 0

Quick best practice cleanup of views/helpers (#1546)

* Remove trailing whitespace

* Use query methods instead of explicit .blank? checks
This commit is contained in:
Matt Jankowski 2017-04-12 12:24:18 -04:00 committed by Eugen
parent aa90798386
commit c44a700252
10 changed files with 16 additions and 19 deletions

View file

@ -2,7 +2,7 @@
module StreamEntriesHelper
def display_name(account)
account.display_name.blank? ? account.username : account.display_name
account.display_name.presence || account.username
end
def stream_link_target