summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-04-15 16:01:18 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-04-15 16:01:18 -0400
commit77fd71b653795a6e2930ca4ccbeec60087d2a286 (patch)
tree40df95a9a0efb99b6f54f628c490001f3fadb19e
parent8be3bc60a9c804d73a70586ec790ed024e98821b (diff)
downloadsdl_ios-77fd71b653795a6e2930ca4ccbeec60087d2a286.tar.gz
Style changes
-rw-r--r--SmartDeviceLink/private/SDLLifecycleManager.m4
-rw-r--r--SmartDeviceLink/private/SDLUploadFileOperation.m2
2 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/private/SDLLifecycleManager.m b/SmartDeviceLink/private/SDLLifecycleManager.m
index 858702922..a349b35b5 100644
--- a/SmartDeviceLink/private/SDLLifecycleManager.m
+++ b/SmartDeviceLink/private/SDLLifecycleManager.m
@@ -387,7 +387,7 @@ NSString *const BackgroundTaskTransportName = @"com.sdl.transport.backgroundTask
__weak typeof(self) weakSelf = self;
[self sendConnectionManagerRequest:regRequest withResponseHandler:^(__kindof SDLRPCRequest *_Nullable request, __kindof SDLRPCResponse *_Nullable response, NSError *_Nullable error) {
// If the success BOOL is NO or we received an error at this point, we failed. Call the ready handler and transition to the DISCONNECTED state.
- if (error != nil || ![response.success boolValue]) {
+ if (error != nil || !response.success.boolValue) {
SDLLogE(@"Failed to register the app. Error: %@, Response: %@", error, response);
if (weakSelf.readyHandler) {
weakSelf.readyHandler(NO, error);
@@ -626,7 +626,7 @@ NSString *const BackgroundTaskTransportName = @"com.sdl.transport.backgroundTask
__weak typeof(self) weakSelf = self;
[self sdl_sendConnectionRequest:unregisterRequest
withResponseHandler:^(__kindof SDLRPCRequest *_Nullable request, __kindof SDLRPCResponse *_Nullable response, NSError *_Nullable error) {
- if (error != nil || ![response.success boolValue]) {
+ if (error != nil || !response.success.boolValue) {
SDLLogE(@"SDL Error unregistering, we are going to hard disconnect: %@, response: %@", error, response);
}
diff --git a/SmartDeviceLink/private/SDLUploadFileOperation.m b/SmartDeviceLink/private/SDLUploadFileOperation.m
index 8149c56fc..aa476964a 100644
--- a/SmartDeviceLink/private/SDLUploadFileOperation.m
+++ b/SmartDeviceLink/private/SDLUploadFileOperation.m
@@ -153,7 +153,7 @@ static NSUInteger const MaxCRCValue = UINT32_MAX;
}
// If the SDL Core returned an error, cancel the upload the process in the future
- if (error != nil || response == nil || ![response.success boolValue] || strongself.isCancelled) {
+ if (error != nil || response == nil || !response.success.boolValue || strongself.isCancelled) {
[strongself cancel];
streamError = error;
dispatch_group_leave(putFileGroup);