diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-24 13:31:45 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-24 13:31:45 -0700 |
commit | 3c33020357e58202a9909d739353f4c20f78e817 (patch) | |
tree | 607654ed19ee82d2bb6fc413268fc75b6b608e96 /src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m | |
parent | 1cbb484729706cf89b140b8a746562a53d916e8b (diff) |
Polish nullabitily
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m index 5773f2d9af..44e94831e9 100644 --- a/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m +++ b/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m @@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN @implementation GRPCInsecureChannelFactory -+ (nullable instancetype)sharedInstance { ++ (instancetype _Nullable)sharedInstance { static GRPCInsecureChannelFactory *instance; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ @@ -34,8 +34,8 @@ NS_ASSUME_NONNULL_BEGIN return instance; } -- (nullable grpc_channel *)createChannelWithHost:(NSString *)host - channelArgs:(nullable NSDictionary *)args { +- (grpc_channel * _Nullable)createChannelWithHost:(NSString *)host + channelArgs:(NSDictionary * _Nullable)args { grpc_channel_args *coreChannelArgs = GRPCBuildChannelArgs([args copy]); grpc_channel *unmanagedChannel = grpc_insecure_channel_create(host.UTF8String, coreChannelArgs, NULL); |