aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannelPool.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-11-08 15:33:27 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-11-08 15:33:27 -0800
commitd72d5b2c8eaa8a434a7db4624fe6a45bc0d6bde4 (patch)
tree5561a5a513a8e1564ebd97896f5a1c54f72db322 /src/objective-c/GRPCClient/private/GRPCChannelPool.m
parentc9c060c52da12cc55bbd383b1544260ad665dbab (diff)
Some nit fixes
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannelPool.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.m b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
index b4a589ae83..1bf2a5c563 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannelPool.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.m
@@ -192,6 +192,7 @@ extern const char *kCFStreamVarName;
}
- (GRPCChannel *)channelWithConfiguration:(GRPCChannelConfiguration *)configuration {
+ NSAssert(configuration != nil, @"Must has a configuration");
GRPCChannel *channel;
@synchronized(self) {
if ([_channelPool objectForKey:configuration]) {