diff options
| author | Jack Nagel | 2013-05-10 23:45:06 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-10 23:45:06 -0500 |
| commit | a8fec193048ebd4db4363ddeb44b2fef689b67ab (patch) | |
| tree | 67471c1c086d18f8c7a125429eb11aad169ade3a /Library | |
| parent | 565a5fe1267c86bc05aa51bc42480f5b7912ad5b (diff) | |
| download | homebrew-a8fec193048ebd4db4363ddeb44b2fef689b67ab.tar.bz2 | |
Use Enumerable#grep
Diffstat (limited to 'Library')
| -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 |
