diff options
author | 2018-10-16 18:10:48 -0700 | |
---|---|---|
committer | 2018-10-16 18:10:48 -0700 | |
commit | 549db7b80b3e6e91aaf08f9f9bf2f932050cc310 (patch) | |
tree | 6dbb792101939520d3674fe1bc179a5414c12b8f /src/objective-c/GRPCClient/private/GRPCChannel.m | |
parent | 62fb609df7b9534f188804c43401f6219345577c (diff) |
host == nil -> host.length == 0
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index ae90821de0..495af5ebe8 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -82,7 +82,7 @@ + (nullable instancetype)createChannelWithConfiguration:(GRPCChannelConfiguration *)config { NSString *host = config.host; - if (host == nil || [host length] == 0) { + if (host.length == 0) { return nil; } |