diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-06-07 16:59:06 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-06-07 18:34:59 +0300 |
commit | 32bfa48ad0b2d930d3a95656774982afed7489f0 (patch) | |
tree | 27ec5f0e5df54d95036a06369ede036d2c4d7db7 /lib/ci | |
parent | 451b684d8474d5c16007d69f462f08f2191820f2 (diff) |
use squre bracket
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
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 9a681c65d4b..56ad2c77c7d 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) - if %w(api external web).include?(source) + if %w[api external web].include?(source) source else source&.pluralize |