From 73528b6a08cb26e326300a1cb4b6743b6d25719c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 29 Apr 2019 13:02:15 +0100 Subject: [PATCH] Freeze more strings Freeze the results changed in #6072. --- Library/Homebrew/cask/exceptions.rb | 6 +++--- Library/Homebrew/cmd/gist-logs.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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