From 3d39a571187db5fa85122a4fc779c4d59d8012bc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 14 Aug 2013 12:43:25 -0500 Subject: [PATCH] No need to map, all? takes a block --- Library/Homebrew/requirements/python_dependency.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index 7f86995ab8..971d85edd1 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