diff --git a/Library/Homebrew/cask/exceptions.rb b/Library/Homebrew/cask/exceptions.rb index 13e04a008a..7a337034c9 100644 --- a/Library/Homebrew/cask/exceptions.rb +++ b/Library/Homebrew/cask/exceptions.rb @@ -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 diff --git a/Library/Homebrew/cmd/gist-logs.rb b/Library/Homebrew/cmd/gist-logs.rb index b5cc85f0da..0cfaed1221 100644 --- a/Library/Homebrew/cmd/gist-logs.rb +++ b/Library/Homebrew/cmd/gist-logs.rb @@ -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