From cb350fa9eb02912718646ff1a7d9f433a1b88366 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 26 Nov 2013 20:23:19 -0600 Subject: Simplify Hardware::CPU.is_64_bit? --- Library/Homebrew/os/mac/hardware.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb index dec4126a6..53a9a6463 100644 --- a/Library/Homebrew/os/mac/hardware.rb +++ b/Library/Homebrew/os/mac/hardware.rb @@ -77,10 +77,7 @@ module MacCPUs end def bits - return @bits if defined? @bits - - is_64_bit = sysctl_bool("hw.cpu64bit_capable") - @bits ||= is_64_bit ? 64 : 32 + @bits ||= sysctl_bool("hw.cpu64bit_capable") ? 64 : 32 end def arch_32_bit -- cgit v1.2.3