lib/ComponentSynchronizer.rb in pixab-1.2.0 vs lib/ComponentSynchronizer.rb in pixab-1.2.1

- old
+ new

@@ -55,15 +55,17 @@ # 将本地调试仓修改为远程仓 def replace_local_to_remote active_repo_names = "" repos.each do |repo| - components = repo["components"] is_avtive = true - components.each do |component| - if component["tool"] == "CocoaPods" - is_avtive = !component["active"].empty? - break + components = repo["components"] + if !components.nil? + components.each do |component| + if component["tool"] == "CocoaPods" + is_avtive = !component["active"].empty? + break + end end end if is_avtive active_repo_names += " #{repo["name"]}" end