From 6f58b28c83eac8498e189b59b92fde3354e7610b Mon Sep 17 00:00:00 2001 From: Justin Dickow Date: Fri, 11 Mar 2016 10:59:37 -0500 Subject: Don't check BOOL against NO, use ! instead --- SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m index 18a09d0b1..f6c7d091c 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m @@ -365,7 +365,7 @@ const int POLICIES_CORRELATION_ID = 65535; // If system version is less than 9.0 http://stackoverflow.com/a/5337804/1370927 if ([[[UIDevice currentDevice] systemVersion] compare:@"9.0" options:NSNumericSearch] == NSOrderedAscending) { // Return early if we can't openURL because openURL will crash instead of fail silently in < 9.0 - if ([[UIApplication sharedApplication] canOpenURL:URLScheme] == NO) { + if (![[UIApplication sharedApplication] canOpenURL:URLScheme]) { return; } } -- cgit v1.2.1