summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 21:25:48 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 21:25:48 +0200
commit3714e1914b6b891274ab7d8b8db8f21dedd29e37 (patch)
tree4cfcffc974929b088f098a647aa21050f2d08594 /lib
parente6209a407e2e8abee99bb61f089e262c3a5e51e8 (diff)
downloadgitlab-ce-3714e1914b6b891274ab7d8b8db8f21dedd29e37.tar.gz
Improve after review
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 15d57a46eb0..40a5d180fd0 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -208,7 +208,7 @@ module Ci
raise ValidationError, "#{name} job: allow_failure parameter should be an boolean"
end
- if job[:when] && !job[:when].in?(%w(on_success on_failure always))
+ if job[:when] && !job[:when].in?(%w[on_success on_failure always])
raise ValidationError, "#{name} job: when parameter should be on_success, on_failure or always"
end
end
@@ -279,7 +279,7 @@ module Ci
raise ValidationError, "#{name} job: artifacts:paths parameter should be an array of strings"
end
- if job[:artifacts][:when] && !job[:artifacts][:when].in?(%w(on_success on_failure always))
+ if job[:artifacts][:when] && !job[:artifacts][:when].in?(%w[on_success on_failure always])
raise ValidationError, "#{name} job: artifacts:when parameter should be on_success, on_failure or always"
end
end