diff options
| author | Jack Nagel | 2013-07-21 16:41:51 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-21 16:41:51 -0500 |
| commit | a1e7d7177f713c3d3bed79e5723849875cd0df2f (patch) | |
| tree | 65cb08bac3f7ce323ca0f38dcef233784e88b9c6 /Library | |
| parent | 9f2f5c81e9959f208a5f553b1b0aa119afb000e7 (diff) | |
| download | brew-a1e7d7177f713c3d3bed79e5723849875cd0df2f.tar.bz2 | |
Eliminate nested conditional
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 31dbf8c02..d8ac28a9e 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -50,13 +50,9 @@ module MacOS::Xcode extend self elsif File.executable? "#{V4_BUNDLE_PATH}/Contents/Developer/usr/bin/make" # fallback for broken Xcode 4.3 installs Pathname.new("#{V4_BUNDLE_PATH}/Contents/Developer") - else - path = bundle_path - - unless path.nil? - path += "Contents/Developer" - path if File.executable? "#{path}/usr/bin/make" - end + elsif (path = bundle_path) + path += "Contents/Developer" + path if File.executable? "#{path}/usr/bin/make" end end end |
