Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Fix crash in xcode manager if no user is provided (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx authored and taquitos committed Jun 15, 2018
1 parent a6b70a3 commit d89717d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/xcode_manager_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def initialize(user: nil)
def use_apple_id(apple_id: nil, user: nil)
# use the user (email) to identify to make sure the account is
# persisted and can be used
user ||= apple_id.user
user ||= apple_id.user if apple_id

@apple_id = Services.apple_id_service.apple_ids.find { |a| a.user == user } if user
if self.apple_id.nil?
Expand Down

0 comments on commit d89717d

Please sign in to comment.