From 2a559110c2ef0fd6ff13f51b59154b9a165a95c2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 1 Mar 2012 17:01:17 +0000 Subject: [PATCH] Don't warn about missing Xcode twice --- Library/Homebrew/cmd/doctor.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 9f47dd92a0..af364f0c8f 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"