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