diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-06-07 22:26:04 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-06-08 00:34:59 +0900 |
commit | 835f97a7e26ae7b199d886f35e33255016538134 (patch) | |
tree | 3d10d4b2e4c1486be9bafd27f4c9207d718f4078 /lib/ci | |
parent | 465e5de5107da7e280902de581ee29c6f0cd1abc (diff) | |
download | gitlab-ce-835f97a7e26ae7b199d886f35e33255016538134.tar.gz |
Remove source.nil
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index bd3ce40ca4b..c3fa875bfe6 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -214,7 +214,7 @@ module Ci def matches_path?(path) return true unless path - + path == self.path end @@ -231,10 +231,10 @@ module Ci end def source_to_pattern(source) - if %w(api external web).include?(source) || source.nil? + if %w(api external web).include?(source) source else - source.pluralize + source&.pluralize end end end |