Commit 53ac9ff8 authored by Fabio Pelosin's avatar Fabio Pelosin

Merge pull request #367 from Jaym3s/patch-1

Array#flatten! returns nil if no modifications were made
parents ebd1176c 8e9d2e94
......@@ -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