aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/github.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb
index e73951c8d..be9bf4dd3 100644
--- a/Library/Homebrew/utils/github.rb
+++ b/Library/Homebrew/utils/github.rb
@@ -87,8 +87,8 @@ module GitHub
def api_credentials_type
token, username = api_credentials
return :none if !token || token.empty?
- return :keychain if !username || username.empty?
- :environment
+ return :environment if !username || username.empty?
+ :keychain
end
def api_credentials_error_message(response_headers, needed_scopes)