diff options
| author | Jack Nagel | 2013-11-26 20:23:19 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-26 20:23:19 -0600 |
| commit | 0cfe3901be14db9142180d2e8942e27e7e958d62 (patch) | |
| tree | a6b9f3738c843e72e916e790df49343dae64d422 /Library/Homebrew/os | |
| parent | 83d567710005b47fcc19679df6a1cb6651e756da (diff) | |
| download | homebrew-0cfe3901be14db9142180d2e8942e27e7e958d62.tar.bz2 | |
Simplify Hardware::CPU.is_64_bit?
Diffstat (limited to 'Library/Homebrew/os')
| -rw-r--r-- | Library/Homebrew/os/mac/hardware.rb | 5 |
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 |
