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
commit896ccc45f42cbc5ed90b946ac740d0462783f6f0 (patch)
tree533fa2d7cd3e53b0837c80b7ab75de554b728fef /Library
parenteb3c0cd2731d3622efb39a9b92e752a4c78adbd5 (diff)
downloadbrew-896ccc45f42cbc5ed90b946ac740d0462783f6f0.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.