aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-03-13 02:07:01 -0500
committerJack Nagel2013-03-16 13:05:02 -0500
commit7104e20bde71a72a99497c8148ebeb10cf97dfde (patch)
treea8ab9a68033f73b8ee6c51f0e8efba30c853109b /Library/Homebrew/formula.rb
parent94bf0747b30369349926c0bef9adac1cafad1aa6 (diff)
downloadbrew-7104e20bde71a72a99497c8148ebeb10cf97dfde.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb8
1 files changed, 2 insertions, 6 deletions
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