Commit c0a97d70 authored by Robert Speicher's avatar Robert Speicher

Don't allow nil references to get added to results

parent 2403a28b
...@@ -42,6 +42,8 @@ module Gitlab ...@@ -42,6 +42,8 @@ module Gitlab
# type - Singular Symbol reference type (e.g., :issue, :user, etc.) # type - Singular Symbol reference type (e.g., :issue, :user, etc.)
# value - Object to add # value - Object to add
def push_result(type, value) def push_result(type, value)
return if value.nil?
result[:references][type].push(value) result[:references][type].push(value)
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