diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-03-14 15:54:16 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-03-14 15:54:16 -0400 |
commit | a505fc08afbc8658ac5c65d787c5af596f5ae07a (patch) | |
tree | f0c5c6a95f1b7a6e66c5aaeae8146f6e66a41a50 | |
parent | 291c001d2dedb1d2eaf3ea71d16a3d5fb9a88bec (diff) | |
download | sdl_ios-a505fc08afbc8658ac5c65d787c5af596f5ae07a.tar.gz |
Remove a useless nil check
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m index 2ff7f13e7..2fd5b8335 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLProtocol.m @@ -62,9 +62,7 @@ } - (void)sdl_removeSessionIdForServiceType:(SDLServiceType)serviceType { - if (_sessionIDs[@(serviceType)] != nil) { - [_sessionIDs removeObjectForKey:@(serviceType)]; - } + [_sessionIDs removeObjectForKey:@(serviceType)]; } - (UInt8)sdl_retrieveSessionIDforServiceType:(SDLServiceType)serviceType { |