Don't allow nil references to get added to results
This commit is contained in:
parent
2403a28b3f
commit
c0a97d70ef
|
@ -42,6 +42,8 @@ module Gitlab
|
|||
# type - Singular Symbol reference type (e.g., :issue, :user, etc.)
|
||||
# value - Object to add
|
||||
def push_result(type, value)
|
||||
return if value.nil?
|
||||
|
||||
result[:references][type].push(value)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue