diff options
| author | Jack Nagel | 2014-05-18 13:26:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-18 14:23:45 -0500 |
| commit | 9e8d419070d5b3637031c186ba196b8ec8dfea19 (patch) | |
| tree | 62fda3da5212185f98ec6d9650a689b1800759b8 /Library/Homebrew | |
| parent | dfea2b6045bd3325c6e7207d48ba6f67ec40d553 (diff) | |
| download | brew-9e8d419070d5b3637031c186ba196b8ec8dfea19.tar.bz2 | |
Use a case statement
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/extend/ENV/shared.rb | 4 |
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 |
