diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-12 12:54:46 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-12 12:54:46 +0300 |
commit | b0164771ec693ff58504ece560371ffec11f9ca9 (patch) | |
tree | 3668a45479d72788bf8c2ed9390992bfa74f1c76 /lib/gitlab/reference_extractor.rb | |
parent | 03b7fe71a5c5372fc8239a26e757685ab12eed87 (diff) |
Simplify code around (cross)-references
Diffstat (limited to 'lib/gitlab/reference_extractor.rb')
-rw-r--r-- | lib/gitlab/reference_extractor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/reference_extractor.rb b/lib/gitlab/reference_extractor.rb index 0961bd80421..30497e274c2 100644 --- a/lib/gitlab/reference_extractor.rb +++ b/lib/gitlab/reference_extractor.rb @@ -39,6 +39,8 @@ module Gitlab # # Returns the results Array for the requested filter type def pipeline_result(filter_type) + return [] if @text.blank? + klass = filter_type.to_s.camelize + 'ReferenceFilter' filter = Gitlab::Markdown.const_get(klass) |