Eliminate nested conditional
This commit is contained in:
parent
9f2f5c81e9
commit
a1e7d7177f
@ -50,16 +50,12 @@ module MacOS::Xcode extend self
|
|||||||
elsif File.executable? "#{V4_BUNDLE_PATH}/Contents/Developer/usr/bin/make"
|
elsif File.executable? "#{V4_BUNDLE_PATH}/Contents/Developer/usr/bin/make"
|
||||||
# fallback for broken Xcode 4.3 installs
|
# fallback for broken Xcode 4.3 installs
|
||||||
Pathname.new("#{V4_BUNDLE_PATH}/Contents/Developer")
|
Pathname.new("#{V4_BUNDLE_PATH}/Contents/Developer")
|
||||||
else
|
elsif (path = bundle_path)
|
||||||
path = bundle_path
|
|
||||||
|
|
||||||
unless path.nil?
|
|
||||||
path += "Contents/Developer"
|
path += "Contents/Developer"
|
||||||
path if File.executable? "#{path}/usr/bin/make"
|
path if File.executable? "#{path}/usr/bin/make"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
# Ask Spotlight where Xcode is. If the user didn't install the
|
# Ask Spotlight where Xcode is. If the user didn't install the
|
||||||
# helper tools and installed Xcode in a non-conventional place, this
|
# helper tools and installed Xcode in a non-conventional place, this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user