Commit 3f4a6412 authored by Lin Jen-Shin's avatar Lin Jen-Shin

We should totally cache it

parent 8156475e
No related merge requests found
......@@ -158,9 +158,7 @@ module Gitlab
end
def sent_notification
return nil unless reply_key
SentNotification.for(reply_key)
@sent_notification ||= SentNotification.for(reply_key) if reply_key
end
def add_attachments(reply, project)
......
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