aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 9f47dd92a..af364f0c8 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -199,6 +199,9 @@ def check_xcode_exists
end
def check_for_latest_xcode
+ # the check_xcode_exists check is enough
+ return if MacOS.xcode_version.nil?
+
latest_xcode = case MacOS.version
when 10.5 then "3.1.4"
when 10.6 then "3.2.6"