Remove try
from NotificationService#build_recipients
After refactoring pipeline_finished to avoid passing `nil` for current_user, we shouldn't need to use `try` here anymore.
This commit is contained in:
parent
7cd260b107
commit
9493791d12
1 changed files with 1 additions and 1 deletions
|
@ -628,7 +628,7 @@ class NotificationService
|
|||
recipients = reject_unsubscribed_users(recipients, target)
|
||||
recipients = reject_users_without_access(recipients, target)
|
||||
|
||||
recipients.delete(current_user) if skip_current_user && !current_user.try(:notified_of_own_activity?)
|
||||
recipients.delete(current_user) if skip_current_user && !current_user.notified_of_own_activity?
|
||||
|
||||
recipients.uniq
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue