Commit 9493791d authored by Richard Macklin's avatar Richard Macklin

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.
parent 7cd260b1
...@@ -628,7 +628,7 @@ class NotificationService ...@@ -628,7 +628,7 @@ class NotificationService
recipients = reject_unsubscribed_users(recipients, target) recipients = reject_unsubscribed_users(recipients, target)
recipients = reject_users_without_access(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 recipients.uniq
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment