Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-15 18:57:11 +0300
committerDouwe Maan <douwe@gitlab.com>2015-12-15 18:57:11 +0300
commit6560d053ed0c2d5b0a00918e64417bd6b1de4d73 (patch)
tree84c265f19d8c38adbc19642640775a56d1ac4cb1 /lib/banzai
parent48b3ad6d373ea478c12287d11815aef805f0c2a6 (diff)
Use lazy reference extractor to get issue's MRs
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/reference_extractor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/reference_extractor.rb b/lib/banzai/reference_extractor.rb
index 8ae5b890953..2c197d31898 100644
--- a/lib/banzai/reference_extractor.rb
+++ b/lib/banzai/reference_extractor.rb
@@ -11,7 +11,7 @@ module Banzai
end
def lazily(values = nil, &block)
- return values || block.call if lazy?
+ return (values || block.call).uniq if lazy?
begin
Thread.current[LAZY_KEY] = true