diff options
| author | Jack Nagel | 2013-05-10 23:45:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-10 23:45:06 -0500 |
| commit | 7629d4485e9094a758ea9dfdab78f484f36c1714 (patch) | |
| tree | 2eee040589494e24ba94b0e781cfe871736a2622 /Library/Homebrew/formula.rb | |
| parent | 12f4ccd7f350cab238dab88a7a6a1a7d55455185 (diff) | |
| download | brew-7629d4485e9094a758ea9dfdab78f484f36c1714.tar.bz2 | |
Use Enumerable#grep
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
