aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-06-10 20:23:20 +0300
committerMike McQuaid2017-06-10 20:23:20 +0300
commit7a0aff1080ba475f495353cf8686fbe928b6ebde (patch)
tree33ea428a46397f8c461d737319537cb521394afd /Library/Homebrew/tap.rb
parent564b03aa01fbb994fe8325cd57a28a2b0545dcb1 (diff)
downloadbrew-7a0aff1080ba475f495353cf8686fbe928b6ebde.tar.bz2
Autocorrect Rubocop Style/PerlBackrefs.
Diffstat (limited to 'Library/Homebrew/tap.rb')
-rw-r--r--Library/Homebrew/tap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 66aa10158..0aabce6c3 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -43,8 +43,8 @@ class Tap
def self.from_path(path)
path.to_s =~ HOMEBREW_TAP_PATH_REGEX
- raise "Invalid tap path '#{path}'" unless $1
- fetch($1, $2)
+ raise "Invalid tap path '#{path}'" unless Regexp.last_match(1)
+ fetch(Regexp.last_match(1), Regexp.last_match(2))
rescue
# No need to error as a nil tap is sufficient to show failure.
nil