aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-01 21:39:09 -0500
committerJack Nagel2014-07-01 21:39:15 -0500
commit5809710a8309a5b6960051e8a569abc78bb070f2 (patch)
tree01ecdc23bf1a5048bbc9ab844a8b18f48e072c94 /Library
parenta520785ba0751f5765cae5a0deafb13bfe6bc6c3 (diff)
downloadhomebrew-5809710a8309a5b6960051e8a569abc78bb070f2.tar.bz2
Replace find_all + each with grep
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/set.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/set.rb b/Library/Homebrew/extend/set.rb
index e67a05792..b13ece97c 100644
--- a/Library/Homebrew/extend/set.rb
+++ b/Library/Homebrew/extend/set.rb
@@ -5,8 +5,7 @@ class ComparableSet < Set
# smileys only
return super new unless new.respond_to? :>
- objs = find_all { |o| o.class == new.class }
- objs.each do |o|
+ grep(new.class) do |o|
return self if o > new
delete o
end