Skip to content
Snippets Groups Projects
Commit 9493791d authored by Richard Macklin's avatar Richard Macklin
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
@@ -628,7 +628,7 @@ class NotificationService
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment