aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-26 20:23:19 -0600
committerJack Nagel2013-11-26 20:23:19 -0600
commitcb350fa9eb02912718646ff1a7d9f433a1b88366 (patch)
tree5e992c33e83664892a4bea211608c69743718572 /Library
parentf172413a26cca0003fffca7a51f5530242f2faa4 (diff)
downloadbrew-cb350fa9eb02912718646ff1a7d9f433a1b88366.tar.bz2
Simplify Hardware::CPU.is_64_bit?
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/hardware.rb5
1 files changed, 1 insertions, 4 deletions
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