Fix another NSString* != nil to NSString.length != 0

pull/16190/head
Muxi Yan 6 years ago
parent 8592dc2722
commit 96709ecb8c
  1. 2
      src/objective-c/GRPCClient/private/GRPCChannelPool.m

@ -131,7 +131,7 @@ const NSTimeInterval kChannelDestroyDelay = 30;
args[@GRPC_ARG_MOBILE_LOG_CONTEXT] = _callOptions.logContext; args[@GRPC_ARG_MOBILE_LOG_CONTEXT] = _callOptions.logContext;
} }
if (_callOptions.channelPoolDomain != nil) { if (_callOptions.channelPoolDomain.length != 0) {
args[@GRPC_ARG_CHANNEL_POOL_DOMAIN] = _callOptions.channelPoolDomain; args[@GRPC_ARG_CHANNEL_POOL_DOMAIN] = _callOptions.channelPoolDomain;
} }

Loading…
Cancel
Save