Skip to content

Commit d8a22f2

Browse files
author
GaoJi
committed
fix nil crash
1 parent 34901cf commit d8a22f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/cocoapods-developing-folder/local_pod_DSL.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ def local_pod(name, *requirements)
2020
return
2121
end
2222
options = requirements.last
23-
options[:path] = path.to_s
24-
pod(name, *requirements)
23+
if options
24+
options[:path] = path.to_s
25+
pod(name, *requirements)
26+
else
27+
pod(name, :path => path.to_s)
28+
end
2529
end
2630

2731
end

0 commit comments

Comments
 (0)