nit fixes in ChannelArgsUtil

pull/16190/head
Muxi Yan 6 years ago
parent 9e5d7476ac
commit c9c060c52d
  1. 4
      src/objective-c/GRPCClient/private/ChannelArgsUtil.m

@ -31,7 +31,7 @@ static void *copy_pointer_arg(void *p) {
static void destroy_pointer_arg(void *p) {
// Decrease ref count to the object when destroying
CFRelease((CFTreeRef)p);
CFRelease((CFTypeRef)p);
}
static int cmp_pointer_arg(void *p, void *q) { return p == q; }
@ -52,7 +52,7 @@ void GRPCFreeChannelArgs(grpc_channel_args *channel_args) {
}
grpc_channel_args *GRPCBuildChannelArgs(NSDictionary *dictionary) {
if (!dictionary) {
if (dictionary.count == 0) {
return NULL;
}

Loading…
Cancel
Save