提交 9493791d 编写于 作者: R 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.
上级 7cd260b1
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册