summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-06-14 12:54:59 -0500
committerDouwe Maan <douwe@selenight.nl>2017-06-14 13:01:15 -0500
commit338d9b257ecfa6f088daaeb9d93ea8991f8965d0 (patch)
tree5d46c40b24dbb0626d5b672de34d555dec073b71 /lib/banzai
parent5771b946c2e68fd4b9a8ff040c168b568b68a586 (diff)
downloadgitlab-ce-338d9b257ecfa6f088daaeb9d93ea8991f8965d0.tar.gz
Don't return nil for missing objects from parser cachedm-fix-parser-cache
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/reference_parser/base_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/reference_parser/base_parser.rb b/lib/banzai/reference_parser/base_parser.rb
index 1e2536231d8..279fca8d043 100644
--- a/lib/banzai/reference_parser/base_parser.rb
+++ b/lib/banzai/reference_parser/base_parser.rb
@@ -171,7 +171,7 @@ module Banzai
collection.where(id: to_query).each { |row| cache[row.id] = row }
end
- cache.values_at(*ids)
+ cache.values_at(*ids).compact
else
collection.where(id: ids)
end