summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFilip Krakowski <Filip.Krakowski@Uni-Duesseldorf.de>2017-06-02 20:12:44 +0200
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-06-08 00:34:58 +0900
commit7457d076ceb0078e6e9b6cbd9559564bff27b7d0 (patch)
tree35e1532b6b30bb3c1ec9ef609a7409bcb9cc3fd8 /lib
parent1dd054e1788fa7b308a9088f3bb35808a027e76d (diff)
downloadgitlab-ce-7457d076ceb0078e6e9b6cbd9559564bff27b7d0.tar.gz
Check if source is nil
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index d236c42929a..feac7c87466 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -229,7 +229,7 @@ module Ci
end
def source_to_pattern(source)
- return source if %w(api external web).include? source
+ return source if %w(api external web).include?(source) || source.nil?
return source.pluralize
end
end