Improve code design
This commit is contained in:
parent
276d28a60f
commit
6b07a5b26c
2 changed files with 2 additions and 1 deletions
|
@ -457,6 +457,7 @@ module Ci
|
|||
|
||||
def build_attributes_from_config
|
||||
return {} unless pipeline.config_processor
|
||||
|
||||
pipeline.config_processor.build_attributes(name)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue