From 945d75745098aedc204f6554c2fdf454ec985106 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 11 Feb 2021 08:41:32 -0500 Subject: [PATCH] utils/rubocop: don't recreate Regexp into new Regexp --- Library/Homebrew/utils/rubocop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/rubocop.rb b/Library/Homebrew/utils/rubocop.rb index 6dbc27be0b..e1fb8fb857 100755 --- a/Library/Homebrew/utils/rubocop.rb +++ b/Library/Homebrew/utils/rubocop.rb @@ -11,7 +11,7 @@ warnings = [ ] warnings.each do |warning| - Warning.ignore Regexp.new(warning) + Warning.ignore warning end require "rubocop"