From 7104e20bde71a72a99497c8148ebeb10cf97dfde Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 13 Mar 2013 02:07:01 -0500 Subject: Replace custom collection with Set The original constraints that led to using a custom collection rather than Array or Set here no longer exist, so let's avoid the pointless abstraction here. --- Library/Homebrew/formula.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Library/Homebrew/formula.rb') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9234b45df..7ba0cd01e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -785,12 +785,8 @@ private end def fails_with compiler, &block - @cc_failures ||= CompilerFailures.new - @cc_failures << if block_given? - CompilerFailure.new(compiler, &block) - else - CompilerFailure.new(compiler) - end + @cc_failures ||= Set.new + @cc_failures << CompilerFailure.new(compiler, &block) end def test &block -- cgit v1.2.3