aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-03 16:35:03 -0400
committerMax Howell2012-09-03 16:35:16 -0400
commit699e5eca3964976f24cd67c8634b52782d0fcb33 (patch)
tree2e3eb8e0aa5549ba9d5fe26c7ff9dd48587812b1 /Library
parentcb1fea6ddda880b3715bd94cac5c12ef5cbb2512 (diff)
downloadhomebrew-699e5eca3964976f24cd67c8634b52782d0fcb33.tar.bz2
Actually cache Xcode.version if nil
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos/xcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb
index 120d9b3d2..595c2ac05 100644
--- a/Library/Homebrew/macos/xcode.rb
+++ b/Library/Homebrew/macos/xcode.rb
@@ -165,7 +165,7 @@ module MacOS::CLT extend self
def version
# The pkgutils calls are slow, don't repeat if no CLT installed.
- @version if @version_determined
+ return @version if @version_determined
@version_determined = true
# Version string (a pretty damn long one) of the CLT package.