aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-05-18 13:26:07 -0500
committerJack Nagel2014-05-18 14:23:45 -0500
commit9e8d419070d5b3637031c186ba196b8ec8dfea19 (patch)
tree62fda3da5212185f98ec6d9650a689b1800759b8 /Library/Homebrew
parentdfea2b6045bd3325c6e7207d48ba6f67ec40d553 (diff)
downloadbrew-9e8d419070d5b3637031c186ba196b8ec8dfea19.tar.bz2
Use a case statement
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index b7db7df62..2c0ebbbf8 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -92,7 +92,9 @@ module SharedEnvExtension
def compiler
@compiler ||= if (cc = ARGV.cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
- if other =~ GNU_GCC_REGEXP then other
+ case other
+ when GNU_GCC_REGEXP
+ other
else
raise "Invalid value for --cc: #{other}"
end