diff options
| author | JCount | 2017-04-10 16:22:50 -0400 | 
|---|---|---|
| committer | JCount | 2017-04-10 16:46:32 -0400 | 
| commit | 171f65a1e44b4def783f67e1a0ac19d65ed495d9 (patch) | |
| tree | 484e9793a23970f902aef46b4df3bfeb638f542a /Library/Homebrew/missing_formula.rb | |
| parent | 4d6e31999aa69d8498c87ceacc7fddaa5e3c409b (diff) | |
| download | brew-171f65a1e44b4def783f67e1a0ac19d65ed495d9.tar.bz2 | |
missing_formula: fix undefined method `path` for nil:NilClass
This check for a nil `tap` is necessary because Tap.from_path(path)
will simply return a nil value in the event the tap path is invalid
Diffstat (limited to 'Library/Homebrew/missing_formula.rb')
| -rw-r--r-- | Library/Homebrew/missing_formula.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 5b903b899..eac3d7725 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -122,7 +122,7 @@ module Homebrew          path = Formulary.path name          return if File.exist? path          tap = Tap.from_path(path) -        return unless File.exist? tap.path +        return if tap.nil? || !File.exist?(tap.path)          relative_path = path.relative_path_from tap.path          tap.path.cd do | 
