From 6e616b29c5c47d49e94f2fe2345564cf381b0e0f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 3 Jun 2014 09:39:07 -0500 Subject: [PATCH] Use a || b --- Library/Homebrew/extend/ENV/shared.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 1c64c7dd26..57628e9208 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -94,7 +94,7 @@ module SharedEnvExtension def fcflags; self['FCFLAGS']; end def compiler - @compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first) + @compiler ||= if (cc = ARGV.cc || homebrew_cc) COMPILER_SYMBOL_MAP.fetch(cc) do |other| case other when GNU_GCC_REGEXP