Fix compatibility test failures

pull/16190/head
Muxi Yan 6 years ago
parent 915cd71b4a
commit 8c3df503ad
  1. 4
      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.");

Loading…
Cancel
Save