Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Attempt a fix for #323 #345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Master

* Fix for app launch crash
[orta](https://github.com/orta)
[#323](https://github.com/CocoaPods/CocoaPods-app/issue/323)

* Pod version completion
[flufff42](https://github.com/flufff42)
[#313](https://github.com/CocoaPods/CocoaPods-app/pull/313)
Expand Down
2 changes: 1 addition & 1 deletion app/CPReflectionService/RBObject+CocoaPods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def self.pod_sources
sources_manager.all.map { |source|
{ source.name => source.url }

}.reduce &:merge
}.reduce(&:merge).select { |key, value| key.is_a?(String) && value.is_a?(String) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing all you have to do here is change this to reduce({}, &:merge) -- if there are no sources, it'll return nil as-is

end

def self.lockfile_version(path)
Expand Down