BigW Consortium Gitlab

Commit e7d136eb by http://jneen.net/

don't require project

it's not there in the case of personal snippets, f. ex., and we've already guarded against its being missing in #find_notification_setting
parent 8386d69f
class NotificationRecipient
attr_reader :user, :project, :type
attr_reader :user, :type
def initialize(user, type,
custom_action: nil,
target: nil,
......@@ -13,8 +13,6 @@ class NotificationRecipient
@project = project || @target&.project
@user = user
@type = type
raise ArgumentError, "Project is missing" if @project.nil?
end
def notification_setting
......
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