Commit 8e9d2e94 authored by Jaymes Waters's avatar Jaymes Waters

Array#flatten! returns nil if no modifications were made (i.e., array contains no subarrays.)

We probably want just `flatten` rather than `flatten!`
parent ebd1176c
......@@ -305,7 +305,7 @@ module Pod
all_specs = [ top_specification ] + top_specification.subspecs
options = {:glob => '*.{h}'}
files = paths_by_spec(:source_files, options, all_specs).values.flatten!
files = paths_by_spec(:source_files, options, all_specs).values.flatten
headers = files.select { |f| f.extname == '.h' }
headers
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