Skip to content

Commit c12f932

Browse files
MikeMcQuaidRylan12
andauthored
Update Library/Homebrew/utils/github/api.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
1 parent 5611e21 commit c12f932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Library/Homebrew/utils/github

Library/Homebrew/utils/github/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def self.keychain_username_password
198198

199199
sig { returns(T.nilable(String)) }
200200
def self.credentials
201-
@credentials = T.let(nil, T.nilable(String))
201+
@credentials ||= T.let(nil, T.nilable(String))
202202
@credentials ||= Homebrew::EnvConfig.github_api_token.presence
203203
@credentials ||= github_cli_token
204204
@credentials ||= keychain_username_password

0 commit comments

Comments
 (0)