diff options
| author | Mike McQuaid | 2017-06-10 20:23:20 +0300 | 
|---|---|---|
| committer | Mike McQuaid | 2017-06-10 20:23:20 +0300 | 
| commit | 7a0aff1080ba475f495353cf8686fbe928b6ebde (patch) | |
| tree | 33ea428a46397f8c461d737319537cb521394afd /Library/Homebrew/diagnostic.rb | |
| parent | 564b03aa01fbb994fe8325cd57a28a2b0545dcb1 (diff) | |
| download | brew-7a0aff1080ba475f495353cf8686fbe928b6ebde.tar.bz2 | |
Autocorrect Rubocop Style/PerlBackrefs.
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 2741184cc..8be357b0d 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -49,7 +49,7 @@ module Homebrew              case line.chomp                # regex matches: /dev/disk0s2   489562928 440803616  48247312    91%    /              when /^.+\s+[0-9]+\s+[0-9]+\s+[0-9]+\s+[0-9]{1,3}%\s+(.+)/ -              vols << $1 +              vols << Regexp.last_match(1)              end            end          end @@ -919,11 +919,11 @@ module Homebrew          return unless which "python"          `python -V 2>&1` =~ /Python (\d+)\./          # This won't be the right warning if we matched nothing at all -        return if $1.nil? -        return if $1 == "2" +        return if Regexp.last_match(1).nil? +        return if Regexp.last_match(1) == "2"          <<-EOS.undent -          python is symlinked to python#{$1} +          python is symlinked to python#{Regexp.last_match(1)}            This will confuse build scripts and in general lead to subtle breakage.          EOS        end  | 
