Cleaner code using nil messaging

pull/16190/head
Muxi Yan 6 years ago
parent 29bf3864d1
commit 395fc1226f
  1. 4
      src/objective-c/GRPCClient/private/GRPCHost.m

@ -143,9 +143,7 @@ static NSMutableDictionary *gHostCache;
GRPCCallOptions *callOptions = nil;
@synchronized(gHostCache) {
if ([gHostCache objectForKey:host]) {
callOptions = [gHostCache[host] callOptions];
}
callOptions = [gHostCache[host] callOptions];
}
if (callOptions == nil) {
callOptions = [[GRPCCallOptions alloc] init];

Loading…
Cancel
Save