aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-11-26 20:23:19 -0600
committerJack Nagel2013-11-26 20:23:19 -0600
commit48e8be2454734e48c30ee971e146fefe012c77e8 (patch)
tree97fde2748e197b745c87f580a07fb7698d6887be /Library/Homebrew
parentcb350fa9eb02912718646ff1a7d9f433a1b88366 (diff)
downloadbrew-48e8be2454734e48c30ee971e146fefe012c77e8.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/Homebrew')
-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