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

We should totally cache it

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