Commit 4909373d authored by Victor Ilyukevich's avatar Victor Ilyukevich

removed exception catching in recursive_subspecs

see [this
discussion](https://github.com/CocoaPods/CocoaPods/commit/6bedfe0baac10e4e6ff30968b18acd111c143e1e#commitcomment-1212777)
for details
parent 77fd0da6
...@@ -131,16 +131,12 @@ module Pod ...@@ -131,16 +131,12 @@ module Pod
def recursive_subspecs def recursive_subspecs
unless @recursive_subspecs unless @recursive_subspecs
begin mapper = lambda do |spec|
mapper = lambda do |spec|
spec.subspecs.map do |subspec| spec.subspecs.map do |subspec|
[subspec, *mapper.call(subspec)] [subspec, *mapper.call(subspec)]
end.flatten end.flatten
end end
@recursive_subspecs = mapper.call self @recursive_subspecs = mapper.call self
rescue StandardError
@recursive_subspecs = []
end
end end
@recursive_subspecs @recursive_subspecs
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