diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-07 16:01:23 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-12-07 16:01:23 -0800 |
commit | df21aab3a6af360cff29a5164f9728ba646d35ab (patch) | |
tree | 31b4ad23e2fbcf7964ea4036cc87e440d7990492 /src/objective-c/GRPCClient/GRPCCall.m | |
parent | 92db5fc72488f9d62b81ee311a79832df787f3ef (diff) |
nullability annotation
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.m')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 18f79311a6..cfd0de1a8a 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -485,7 +485,7 @@ const char *kCFStreamVarName = "grpc_cfstream"; requestsWriter:(GRXWriter *)requestWriter callOptions:(GRPCCallOptions *)callOptions { // 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(host.length != 0 && path.length != 0, @"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."); |