Commit caccc1a5 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[PodDirCleaner] Clean up creation of file accessors to be more modern ruby

parent 538b2d2e
......@@ -24,14 +24,9 @@ module Pod
# specifications on their respective platform.
#
def file_accessors
return @file_accessors if @file_accessors
@file_accessors = []
specs_by_platform.each do |platform, specs|
specs.each do |spec|
@file_accessors << Sandbox::FileAccessor.new(path_list, spec.consumer(platform))
end
@file_accessors ||= specs_by_platform.flat_map do |platform, specs|
specs.flat_map { |spec| Sandbox::FileAccessor.new(path_list, spec.consumer(platform)) }
end
@file_accessors
end
# @return [Sandbox::PathList] The path list for this Pod.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment