Fix style

This commit is contained in:
Logicer 2021-07-20 09:22:34 +10:00 committed by GitHub
parent 0c6f5ab233
commit ed4f840a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,10 +48,10 @@ 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 = API.credentials ? "" : ", or:\n#{CREATE_GITHUB_PAT_MESSAGE}"
super <<~EOS
GitHub API Error: #{github_message}
Try again in #{pretty_ratelimit_reset(reset)}#{new_PAT_message}
Try again in #{pretty_ratelimit_reset(reset)}#{new_pat_message}
EOS
end