From 2cb72832e03329b45709f2af3294e0354e7f4201 Mon Sep 17 00:00:00 2001 From: Andy Prock Date: Tue, 10 Jan 2017 14:07:13 -0800 Subject: [PATCH] Fix #30, add missing semicolons --- ios/TcpSocketClient.m | 6 +++--- ios/TcpSockets.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/TcpSocketClient.m b/ios/TcpSocketClient.m index 4151960..bbff935 100644 --- a/ios/TcpSocketClient.m +++ b/ios/TcpSocketClient.m @@ -203,7 +203,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain"; - (void)socket:(GCDAsyncSocket *)sock didReadData:(NSData *)data withTag:(long)tag { if (!_clientDelegate) { - RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData]) + RCTLogError(@"didReadData with nil clientDelegate for %@", [sock userData]); return; } @@ -225,7 +225,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain"; - (void)socket:(GCDAsyncSocket *)sock didConnectToHost:(NSString *)host port:(uint16_t)port { if (!_clientDelegate) { - RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData]) + RCTLogError(@"didConnectToHost with nil clientDelegate for %@", [sock userData]); return; } @@ -244,7 +244,7 @@ NSString *const RCTTCPErrorDomain = @"RCTTCPErrorDomain"; - (void)socketDidDisconnect:(GCDAsyncSocket *)sock withError:(NSError *)err { if (!_clientDelegate) { - RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData]) + RCTLogError(@"socketDidDisconnect with nil clientDelegate for %@", [sock userData]); return; } diff --git a/ios/TcpSockets.m b/ios/TcpSockets.m index c178933..c07ea96 100644 --- a/ios/TcpSockets.m +++ b/ios/TcpSockets.m @@ -131,7 +131,7 @@ RCT_EXPORT_METHOD(listen:(nonnull NSNumber*)cId { TcpSocketClient* client = [self findClient:clientID]; if (!client) { - RCTLogError(@"onClose: unrecognized client id %@", clientID) + RCTLogError(@"onClose: unrecognized client id %@", clientID); } if (err) {