Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
unoduetre committed Jan 26, 2024
1 parent 5e92d02 commit b3aa6d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/notification_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module NotificationHelper
def emergency_banner_notification
emergency_banner = EmergencyBanner::Display.new
return emergency_banner if emergency_banner.enabled?
emergency_banner if emergency_banner.enabled?
end
end
3 changes: 2 additions & 1 deletion lib/emergency_banner/display.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def link

def link_text
return nil if link.blank?
return content[:link_text] if content[:link_text].present?

content[:link_text].presence
end

private
Expand Down

0 comments on commit b3aa6d2

Please sign in to comment.