From 11f322b61c28f9fd521e9d990a21f82cde661b62 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 21 Oct 2019 19:01:54 -0700 Subject: [PATCH] Trying this to please brew test-bot. --- Library/Homebrew/extend/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb index 94b4144353..304c6cc807 100644 --- a/Library/Homebrew/extend/string.rb +++ b/Library/Homebrew/extend/string.rb @@ -50,7 +50,7 @@ module StringInreplaceExtension def remove_make_var!(flags) Array(flags).each do |flag| # Also remove trailing \n, if present. - if !gsub(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "") + if !gsub!(/^#{Regexp.escape(flag)}[ \t]*[\\?\+\:\!]?=.*$\n?/, "", false) errors << "expected to remove #{flag.inspect}" end end