diff options
author | Justin Dickow <jjdickow@gmail.com> | 2016-03-11 10:59:37 -0500 |
---|---|---|
committer | Justin Dickow <jjdickow@gmail.com> | 2016-03-11 10:59:37 -0500 |
commit | 6f58b28c83eac8498e189b59b92fde3354e7610b (patch) | |
tree | 571dd30bd5732b1553a9120dfdb1bf9688ea04c5 | |
parent | 752ce72fa86a42ad6a3e531adfc309672f95824d (diff) | |
download | sdl_ios-6f58b28c83eac8498e189b59b92fde3354e7610b.tar.gz |
Don't check BOOL against NO, use ! insteadhotfix/issue_371
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLProxy.m | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |