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
commitf26bea19ab4ce843849fbcd67f4f6f0428257690 (patch)
tree17bd4c44e800e300d006b99e09dafc875de53a5f /Library
parent0cfe3901be14db9142180d2e8942e27e7e958d62 (diff)
downloadhomebrew-f26bea19ab4ce843849fbcd67f4f6f0428257690.tar.bz2
Remove caching from MacOS.preferred_arch
The really expensive computation is now cached at its source, and this only caches true anyway.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 9440142a3..d5b259807 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -213,7 +213,7 @@ module OS
end
def preferred_arch
- @preferred_arch ||= if prefer_64_bit?
+ if prefer_64_bit?
Hardware::CPU.arch_64_bit
else
Hardware::CPU.arch_32_bit