From 7629d4485e9094a758ea9dfdab78f484f36c1714 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 10 May 2013 23:45:06 -0500 Subject: Use Enumerable#grep --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 8973728b4..dafb18ed0 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -489,7 +489,7 @@ class Formula end def conflicts - requirements.select { |r| r.is_a? ConflictRequirement } + requirements.grep(ConflictRequirement) end # Returns a list of Dependency objects in an installable order, which -- cgit v1.2.3