Commit 55928a27 authored by Peter Leitzen's avatar Peter Leitzen

Return explicit `nil` for all awardables with no todos

This cosmetic change makes it explicit that we create todos only
for a couple of awardables by adding an `else` branch returning `nil`
parent 72cd61d6
...@@ -37,7 +37,8 @@ module AwardEmojis ...@@ -37,7 +37,8 @@ module AwardEmojis
awardable.noteable unless awardable.for_personal_snippet? awardable.noteable unless awardable.for_personal_snippet?
when MergeRequest, Issue when MergeRequest, Issue
awardable awardable
when Snippet else
# No todos for all other awardables
nil nil
end end
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