diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-15 18:57:11 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-15 18:57:11 +0300 |
commit | 6560d053ed0c2d5b0a00918e64417bd6b1de4d73 (patch) | |
tree | 84c265f19d8c38adbc19642640775a56d1ac4cb1 /lib/banzai | |
parent | 48b3ad6d373ea478c12287d11815aef805f0c2a6 (diff) |
Use lazy reference extractor to get issue's MRs
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/reference_extractor.rb | 2 |
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 |