aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index a9227d790..096cfb24b 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -100,10 +100,9 @@ module OS
end
rescue SDKLocator::NoSDKError
sdk = @locator.latest_sdk
- ensure
- # only return an SDK older than the OS version if it was specifically requested
- sdk if v || (!sdk.nil? && sdk.version >= version)
end
+ # Only return an SDK older than the OS version if it was specifically requested
+ sdk if v || (!sdk.nil? && sdk.version >= version)
end
# Returns the path to an SDK or nil, following the rules set by #sdk.