aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJCount2017-04-10 21:22:31 -0400
committerGitHub2017-04-10 21:22:31 -0400
commit5d74069b98a9a4a923c748e33b5f101a45ceac83 (patch)
treed7f66f7b15682b39c78a6defa5f08edb75bab362 /Library/Homebrew
parentd3636442213c64c4c46d954fd5db37d361bd5617 (diff)
parent171f65a1e44b4def783f67e1a0ac19d65ed495d9 (diff)
downloadbrew-5d74069b98a9a4a923c748e33b5f101a45ceac83.tar.bz2
Merge pull request #2471 from JCount/missing_formula-fix-undefined-method-nil
missing_formula: fix undefined method `path` for nil:NilClass
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/missing_formula.rb2
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