diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-12 12:24:18 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-12 18:24:18 +0200 |
commit | c44a7002525d6f87dde923971ac7a95a48e9bc4f (patch) | |
tree | a47e5c7dbd8555fd216f60f933e1e4f181e0a5a1 /app/helpers | |
parent | aa9079838648e9656a1bf8d10151713686e1c0dd (diff) |
Quick best practice cleanup of views/helpers (#1546)
* Remove trailing whitespace * Use query methods instead of explicit .blank? checks
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/stream_entries_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/stream_entries_helper.rb b/app/helpers/stream_entries_helper.rb index 59aac7841..18ef8b909 100644 --- a/app/helpers/stream_entries_helper.rb +++ b/app/helpers/stream_entries_helper.rb @@ -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 |