Commit b9768f3f authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '212842-raise-exception-for-unhandled-todoables-when-emojis-are-added' into 'master'

Return explicit `nil` for all awardables with no todos

Closes #212842

See merge request gitlab-org/gitlab!28605
parents 75e0af59 55928a27
......@@ -37,7 +37,8 @@ module AwardEmojis
awardable.noteable unless awardable.for_personal_snippet?
when MergeRequest, Issue
awardable
when Snippet
else
# No todos for all other awardables
nil
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