From ddb0344a8ff43555061a0775875ea38cbebf7c52 Mon Sep 17 00:00:00 2001 From: Wei-Meng Lee <1081658-weimeng@users.noreply.gitlab.com> Date: Fri, 31 May 2019 10:31:28 +0000 Subject: Apply reviewer suggestions --- app/mailers/notify.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/mailers/notify.rb') diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb index cc27ba0c5cc..576caea4c10 100644 --- a/app/mailers/notify.rb +++ b/app/mailers/notify.rb @@ -88,7 +88,7 @@ class Notify < BaseMailer # Return group-specific email address if present, otherwise return global # email address - group_notification_email.presence || @current_user.notification_email + group_notification_email || @current_user.notification_email end # Formats arguments into a String suitable for use as an email subject -- cgit v1.2.3