Commit 78e7c396 authored by Marius Rackwitz's avatar Marius Rackwitz

[Style] Use flat_map instead of map(:…).flatten

parent ccead7d2
......@@ -24,7 +24,7 @@ module Pod
create_info_plist_file
create_module_map
create_umbrella_header do |generator|
generator.imports += target.file_accessors.map(&:public_headers).flatten.map(&:basename)
generator.imports += target.file_accessors.flat_map(&:public_headers).map(&:basename)
end
end
create_prefix_header
......
......@@ -104,7 +104,7 @@ module Pod
result = {}
user_build_configurations.keys.each do |build_configuration|
result[build_configuration] = pod_targets_for_build_configuration(build_configuration).
map(&:specs).flatten
flat_map(&:specs)
end
result
end
......
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