Skip to content

Commit

Permalink
Default sources to return empty array instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
netbe committed Nov 2, 2013
1 parent 99e4e40 commit 88b3a9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/cocoapods-core/podfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ def dependencies
# @return [Array<String>] all the specs source names.

def sources
get_hash_value('sources')
sources = get_hash_value('sources')
if sources
sources
else
[]
end
end

# @return [String] the path of the workspace if specified by the user.
Expand Down

0 comments on commit 88b3a9b

Please sign in to comment.