Merge pull request #2471 from JCount/missing_formula-fix-undefined-method-nil
missing_formula: fix undefined method `path` for nil:NilClass
This commit is contained in:
commit
5d74069b98
@ -122,7 +122,7 @@ module Homebrew
|
|||||||
path = Formulary.path name
|
path = Formulary.path name
|
||||||
return if File.exist? path
|
return if File.exist? path
|
||||||
tap = Tap.from_path(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
|
relative_path = path.relative_path_from tap.path
|
||||||
|
|
||||||
tap.path.cd do
|
tap.path.cd do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user