Merge pull request #6075 from MikeMcQuaid/more-freezing

Freeze more strings
This commit is contained in:
Mike McQuaid 2019-04-29 13:40:13 +01:00 committed by GitHub
commit 718a435176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@ module Cask
s << "\n" unless reason.end_with?("\n")
end
s
s.freeze
end
end
@ -196,7 +196,7 @@ module Cask
s << "\n" unless reason.end_with?("\n")
end
s
s.freeze
end
end
@ -210,7 +210,7 @@ module Cask
s << "\n" unless reason.end_with?("\n")
end
s
s.freeze
end
end
end

View File

@ -90,7 +90,7 @@ module Homebrew
s << "Host: #{hostname}\n"
end
s << "Build date: #{build_time_str}\n"
s
s.freeze
end
# Causes some terminals to display secure password entry indicators