diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-17 21:54:53 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-12-17 21:54:53 -0800 |
commit | 8c3df503ad59a6c66e1b1ab6257b52c508ec37dc (patch) | |
tree | 258c2cf4f5f544773e89153811387acd0337f396 /src/objective-c | |
parent | 915cd71b4a6aceb8003077e0e360ea7accbde38c (diff) |
Fix compatibility test failures
Diffstat (limited to 'src/objective-c')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index cfd0de1a8a..39e4967ec9 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -484,8 +484,8 @@ const char *kCFStreamVarName = "grpc_cfstream"; callSafety:(GRPCCallSafety)safety requestsWriter:(GRXWriter *)requestWriter callOptions:(GRPCCallOptions *)callOptions { - // Purposely using pointer rather than length ([host length] == 0) for backwards compatibility. - NSAssert(host.length != 0 && path.length != 0, @"Neither host nor path can be nil."); + // Purposely using pointer rather than length (host.length == 0) for backwards compatibility. + NSAssert(host != nil && path != nil, @"Neither host nor path can be nil."); NSAssert(safety <= GRPCCallSafetyCacheableRequest, @"Invalid call safety value."); NSAssert(requestWriter.state == GRXWriterStateNotStarted, @"The requests writer can't be already started."); |