aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/version.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb
index d40c94bcd..bd766e940 100644
--- a/Library/Homebrew/os/mac/version.rb
+++ b/Library/Homebrew/os/mac/version.rb
@@ -29,15 +29,7 @@ module OS
end
def to_sym
- case @version
- when '10.9' then :mavericks
- when '10.8' then :mountain_lion
- when '10.7' then :lion
- when '10.6' then :snow_leopard
- when '10.5' then :leopard
- when '10.4' then :tiger
- else :dunno
- end
+ SYMBOLS.invert.fetch(@version) { :dunno }
end
def pretty_name