summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-07-20 09:51:41 -0400
committerGitHub <noreply@github.com>2020-07-20 09:51:41 -0400
commit651722f16851a28dde3ba6f41cc6c7951174dcf0 (patch)
tree5eeeb93af52a3bff71b8f74d73820c76eacc2e80
parent2c54792aed803dfc0e024835303631fbc0cc0224 (diff)
downloadsdl_ios-651722f16851a28dde3ba6f41cc6c7951174dcf0.tar.gz
Apply suggestions from code review
Co-authored-by: Joel Fischer <joeljfischer@gmail.com>
-rw-r--r--SmartDeviceLink/SDLSecondaryTransportManager.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/SmartDeviceLink/SDLSecondaryTransportManager.m b/SmartDeviceLink/SDLSecondaryTransportManager.m
index 526d45677..ac039568d 100644
--- a/SmartDeviceLink/SDLSecondaryTransportManager.m
+++ b/SmartDeviceLink/SDLSecondaryTransportManager.m
@@ -540,10 +540,8 @@ struct TransportProtocolUpdated {
// called on transport's thread, notifying that the transport is established
- (void)onProtocolOpened {
- if (self.secondaryProtocol == nil) {
- // The primary transport opened
- return;
- }
+ // The primary transport opened
+ if (self.secondaryProtocol == nil) { return; }
SDLLogD(@"Secondary transport connected");