lib/spaceship/client.rb in spaceship-0.0.5 vs lib/spaceship/client.rb in spaceship-0.0.6
- old
+ new
@@ -159,11 +159,10 @@
r = request(:post, 'account/listTeams.action')
parse_response(r, 'teams')
end
def team_id
- return ENV['FASTLANE_TEAM_ID'] if ENV['FASTLANE_TEAM_ID']
return @current_team_id if @current_team_id
if teams.count > 1
puts "The current user is in #{teams.count} teams. Pass a team ID or call `select_team` to choose a team. Using the first one for now."
end
@@ -423,10 +422,10 @@
content = response.body[expected_key]
else
content = response.body
end
- if content.nil?
+ if content == nil
raise UnexpectedResponse.new(response.body)
else
store_csrf_tokens(response)
content
end