diff options
| author | Mike McQuaid | 2017-12-07 17:16:18 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-07 17:16:18 +0000 |
| commit | f52d69abea388902346cf839fda0ab4a4d11618a (patch) | |
| tree | 9c10685d99c52bc2d1b7c3f6a9f00e7f1e8552ee /Library | |
| parent | 360d7bc6f4cdea996b55c14d885a8b78da5dd7ad (diff) | |
| parent | 4ca9831da6c1b16f7ea28e32c7c21cf37845c26d (diff) | |
| download | brew-f52d69abea388902346cf839fda0ab4a4d11618a.tar.bz2 | |
Merge pull request #3539 from MikeMcQuaid/nil_req_dep
formula_installer: handle nil req_dependency.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 10b0ae9cf..6d3984275 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -450,7 +450,7 @@ class FormulaInstaller if (req.optional? || req.recommended?) && build.without?(req) Requirement.prune - elsif req.build? && use_default_formula && req_dependency.installed? + elsif req.build? && use_default_formula && req_dependency&.installed? Requirement.prune elsif install_requirement_formula?(req_dependency, req, dependent, install_bottle_for_dependent) deps.unshift(req_dependency) |
