Quick best practice cleanup of views/helpers (#1546)
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user