Commit e4789cdf authored by http://jneen.net/'s avatar http://jneen.net/

add a comment warning that note.project may be nil

parent 273cd9c3
...@@ -252,6 +252,10 @@ module NotificationRecipientService ...@@ -252,6 +252,10 @@ module NotificationRecipientService
note.noteable note.noteable
end end
# NOTE: may be nil, in the case of a PersonalSnippet
#
# (this is okay because NotificationRecipient is written
# to handle nil projects)
def project def project
note.project note.project
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