aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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