lib/travis/cli/sshkey.rb in travis-1.11.0 vs lib/travis/cli/sshkey.rb in travis-1.11.1
- old
+ new
@@ -54,10 +54,9 @@
def generate_key
access_token = nil
github.with_token do |token|
access_token = github_auth(token)
end
- session.access_token = nil
unless access_token
raise Travis::Client::GitHubLoginFailed, "all GitHub tokens given were invalid"
end
gh = GH.with(token: github_token)
login = gh['user']['login']