diff options
| author | Jack Nagel | 2013-08-14 12:43:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-14 12:45:54 -0500 |
| commit | ef00a3f3de70a4663b5d6da05c526965f5094368 (patch) | |
| tree | 831157f0c3046b679fcd07e023a31a9ee3fa6f47 /Library | |
| parent | 4ff80b4b22b19d5a576587a48c4c58903ed0289e (diff) | |
| download | homebrew-ef00a3f3de70a4663b5d6da05c526965f5094368.tar.bz2 | |
No need to map, all? takes a block
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/python_dependency.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index 7f86995ab..971d85edd 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -91,7 +91,7 @@ class PythonInstalled < Requirement @unsatisfied_because += "Your `python` points to a Python 3.x. This is not supported." false else - @imports.keys.map do |module_name| + @imports.keys.all? do |module_name| if not importable? module_name @unsatisfied_because += "Unsatisfied dependency: #{module_name}\n" @unsatisfied_because += "OS X System's " if from_osx? @@ -106,7 +106,7 @@ class PythonInstalled < Requirement else true end - end.all? # all given `module_name`s have to be `importable?` + end end end |
