Skip to content
Browse files

Guard against nil values in external_dependencies

  • Loading branch information...
1 parent e0ad95a commit 4d2db7cbbabd55f550161bc9ee3923f24268f949 @Sharpie committed May 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Contributions/examples/brew-tap.rb
View
2 Library/Contributions/examples/brew-tap.rb
@@ -192,7 +192,7 @@ def gather_dependencies formula, taproom
formula_path = formula.path
end
- if deps.empty?
+ if deps.nil? or deps.empty?
return formula_path
else
return deps.map {|dep| gather_dependencies dep, taproom} << formula_path

0 comments on commit 4d2db7c

Please sign in to comment.
Something went wrong with that request. Please try again.