Freeze more strings

Freeze the results changed in #6072.
This commit is contained in:
Mike McQuaid 2019-04-29 13:02:15 +01:00
parent 147d8ad6e7
commit 73528b6a08
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 4 additions and 4 deletions

View File

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

View File

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