diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index a8f35531f..931cba07f 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -75,7 +75,7 @@ module Homebrew          tap = CoreTap.instance        elsif (testing_match = arg.match %r{/job/Homebrew.*Testing/(\d+)/})          tap = ARGV.value("tap") -        tap = if tap && tap.start_with?("homebrew/") +        tap = if tap&.start_with?("homebrew/")            Tap.fetch("homebrew", tap.strip_prefix("homebrew/"))          elsif tap            odie "Tap option did not start with \"homebrew/\": #{tap}" @@ -350,7 +350,7 @@ module Homebrew        files << Regexp.last_match(1) if line =~ %r{^\+\+\+ b/(.*)}      end      files.each do |file| -      if tap && tap.formula_file?(file) +      if tap&.formula_file?(file)          formula_name = File.basename(file, ".rb")          formulae << formula_name unless formulae.include?(formula_name)        else | 
