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 ...@@ -24,14 +24,9 @@ module Pod
# specifications on their respective platform. # specifications on their respective platform.
# #
def file_accessors def file_accessors
return @file_accessors if @file_accessors @file_accessors ||= specs_by_platform.flat_map do |platform, specs|
@file_accessors = [] specs.flat_map { |spec| Sandbox::FileAccessor.new(path_list, spec.consumer(platform)) }
specs_by_platform.each do |platform, specs|
specs.each do |spec|
@file_accessors << Sandbox::FileAccessor.new(path_list, spec.consumer(platform))
end
end end
@file_accessors
end end
# @return [Sandbox::PathList] The path list for this Pod. # @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