Commit 5a30de0d authored by Samuel E. Giddins's avatar Samuel E. Giddins

[LockingDependencyAnalyzer] Ensure vertex exists before detaching it

Closes https://github.com/CocoaPods/CocoaPods/issues/2779.
parent 1ded8a0f
...@@ -32,7 +32,9 @@ module Pod ...@@ -32,7 +32,9 @@ module Pod
add_to_dependency_graph(pod, [], dependency_graph) add_to_dependency_graph(pod, [], dependency_graph)
end end
pods_to_update.each { |u| dependency_graph.detach_vertex_named(u) } pods_to_update.each do |u|
dependency_graph.detach_vertex_named(u) if dependency_graph.vertex_named(u)
end
end end
dependency_graph dependency_graph
......
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