Merge pull request #6068 from MikeMcQuaid/utils-github-freeze
utils/github: fix frozen string usage.
This commit is contained in:
commit
e18c5c1291
@ -47,7 +47,7 @@ module GitHub
|
|||||||
class AuthenticationFailedError < Error
|
class AuthenticationFailedError < Error
|
||||||
def initialize(github_message)
|
def initialize(github_message)
|
||||||
@github_message = github_message
|
@github_message = github_message
|
||||||
message = "GitHub #{github_message}:"
|
message += "GitHub #{github_message}:"
|
||||||
if ENV["HOMEBREW_GITHUB_API_TOKEN"]
|
if ENV["HOMEBREW_GITHUB_API_TOKEN"]
|
||||||
message << <<~EOS
|
message << <<~EOS
|
||||||
HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:
|
HOMEBREW_GITHUB_API_TOKEN may be invalid or expired; check:
|
||||||
@ -63,7 +63,7 @@ module GitHub
|
|||||||
#{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
|
#{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
super message
|
super message.freeze
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user