Avoid intermediate array
This commit is contained in:
parent
d0ecd08c90
commit
20923363c9
@ -7,8 +7,7 @@ module Language
|
|||||||
# The resource names should be the import name of the package,
|
# The resource names should be the import name of the package,
|
||||||
# e.g. `resource "github.com/foo/bar"`
|
# e.g. `resource "github.com/foo/bar"`
|
||||||
def self.stage_deps resources, target
|
def self.stage_deps resources, target
|
||||||
godeps = resources.grep(Resource::Go)
|
resources.grep(Resource::Go) { |resource| resource.stage(target) }
|
||||||
godeps.each {|resource| resource.stage target}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user