Improve code design

This commit is contained in:
Kamil Trzcinski 2016-07-19 14:53:31 +02:00
parent 276d28a60f
commit 6b07a5b26c
2 changed files with 2 additions and 1 deletions

View file

@ -457,6 +457,7 @@ module Ci
def build_attributes_from_config
return {} unless pipeline.config_processor
pipeline.config_processor.build_attributes(name)
end
end

View file

@ -44,7 +44,7 @@ module Ci
end
def builds_for_ref(ref, tag = false, trigger_request = nil)
jobs_for_ref(ref, tag, trigger_request).map do |name, job|
jobs_for_ref(ref, tag, trigger_request).map do |name, _|
build_attributes(name)
end
end