diff options
author | Robert Speicher <robert@gitlab.com> | 2015-10-14 20:10:34 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-10-14 20:10:34 +0000 |
commit | 123669a55107514798ba531ba3a744b3ec8503ee (patch) | |
tree | d44c8f0dbd7f0426341392c755af60d023a3d808 /lib | |
parent | a3a80eac110fb9f195eaccd3afd8e8611d1924dc (diff) | |
parent | 276b3a7bc202bd9b51c8f5401f4c525227f3a4d8 (diff) | |
download | gitlab-ce-123669a55107514798ba531ba3a744b3ec8503ee.tar.gz |
Merge branch 'simplify-cross-references' into 'master'
Simplify code around (cross)-references
See merge request !1568
Diffstat (limited to 'lib')
-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) |