From 7c83e3ffe38cdeb3287b275b202e2a1cdaab5bf8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 19 Jun 2015 22:30:13 -0400 Subject: Remove workarounds for destructuring single-element hashes --- Library/Homebrew/compilers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/compilers.rb') diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 25f09843e..a8bc945c2 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -32,7 +32,7 @@ class CompilerFailure def self.create(spec, &block) # Non-Apple compilers are in the format fails_with compiler => version if spec.is_a?(Hash) - _, major_version = spec.each { |e| break e } + _, major_version = spec.first name = "gcc-#{major_version}" # so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible version = "#{major_version}.999" -- cgit v1.2.3