diff options
author | Muxi Yan <mxyan@google.com> | 2018-11-14 18:52:35 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-11-14 18:52:35 -0800 |
commit | e14ec44b0ac1512bc3def0f2094be883d1b53c5f (patch) | |
tree | bbbf56205dd057f77aa2564480af51d429612a43 /src/objective-c | |
parent | b5434c05aaaacfba9d6ef6882b6c1f3285a304e2 (diff) |
clang-format
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 5 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 3 | ||||
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 1ba55a7744..4068c3b460 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -209,8 +209,9 @@ const char *kCFStreamVarName = "grpc_cfstream"; } }); }; - id<GRXWriteable> responseWriteable = [[GRXWriteable alloc] initWithValueHandler:valueHandler - completionHandler:completionHandler]; + id<GRXWriteable> responseWriteable = + [[GRXWriteable alloc] initWithValueHandler:valueHandler + completionHandler:completionHandler]; [self->_call startWithWriteable:responseWriteable]; }); } diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index f63157c974..2933ca7044 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -242,7 +242,8 @@ static const NSTimeInterval kDefaultChannelDestroyDelay = 30; if (self->_disconnected) { isDisconnected = YES; } else { - GRPCAssert(self->_unmanagedChannel != NULL, NSInternalInconsistencyException, @"Channel should have valid unmanaged channel."); + GRPCAssert(self->_unmanagedChannel != NULL, NSInternalInconsistencyException, + @"Channel should have valid unmanaged channel."); NSString *serverAuthority = callOptions.transportType == GRPCTransportTypeCronet ? nil : callOptions.serverAuthority; diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index 905719f464..aa7d60786e 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -249,7 +249,8 @@ - (instancetype)initWithHost:(NSString *)host path:(NSString *)path callOptions:(GRPCCallOptions *)callOptions { - GRPCAssert(host.length != 0 && path.length != 0, NSInvalidArgumentException, @"path and host cannot be nil."); + GRPCAssert(host.length != 0 && path.length != 0, NSInvalidArgumentException, + @"path and host cannot be nil."); if ((self = [super init])) { // Each completion queue consumes one thread. There's a trade to be made between creating and |