From 7beb1f227c428edaaa0f37f6d1f6f3d735535b72 Mon Sep 17 00:00:00 2001 From: Logicer <81077770+Logicer16@users.noreply.github.com> Date: Tue, 20 Jul 2021 12:06:04 +1000 Subject: [PATCH] Update Library/Homebrew/utils/github/api.rb Co-authored-by: Rylan Polster --- Library/Homebrew/utils/github/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github/api.rb b/Library/Homebrew/utils/github/api.rb index dde14b05e2..20a2306f3a 100644 --- a/Library/Homebrew/utils/github/api.rb +++ b/Library/Homebrew/utils/github/api.rb @@ -48,7 +48,7 @@ module GitHub class RateLimitExceededError < Error def initialize(reset, github_message) @github_message = github_message - new_pat_message = API.credentials ? "" : ", or:\n#{CREATE_GITHUB_PAT_MESSAGE}" + new_pat_message = ", or:\n#{CREATE_GITHUB_PAT_MESSAGE}" if API.credentials.blank? super <<~EOS GitHub API Error: #{github_message} Try again in #{pretty_ratelimit_reset(reset)}#{new_pat_message}