diff options
Diffstat (limited to 'lib/gitlab/ci/config/yaml.rb')
-rw-r--r-- | lib/gitlab/ci/config/yaml.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/yaml.rb b/lib/gitlab/ci/config/yaml.rb index e3010ac3fdb..51221304430 100644 --- a/lib/gitlab/ci/config/yaml.rb +++ b/lib/gitlab/ci/config/yaml.rb @@ -7,8 +7,8 @@ module Gitlab LoadError = Class.new(StandardError) class << self - def load!(content, current_user: nil) - Loader.new(content, current_user: current_user).load.then do |result| + def load!(content) + Loader.new(content).load.then do |result| raise result.error_class, result.error if !result.valid? && result.error_class.present? raise LoadError, result.error unless result.valid? |