diff options
author | Muxi Yan <mxyan@google.com> | 2018-11-15 12:56:08 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-11-15 12:57:33 -0800 |
commit | 8a762d447813db1b1c3fe52b24e638581235460e (patch) | |
tree | e9645f76393e6b5b39bc1942513bc8849773917e /src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m | |
parent | 6b6ab2bdc9d03ffe85398451342a140320aac1dd (diff) |
Polish nullability + something else
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m index 9969887712..3e9ebe7ae0 100644 --- a/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m +++ b/src/objective-c/GRPCClient/private/GRPCInsecureChannelFactory.m @@ -21,11 +21,9 @@ #import "ChannelArgsUtil.h" #import "GRPCChannel.h" -NS_ASSUME_NONNULL_BEGIN - @implementation GRPCInsecureChannelFactory -+ (instancetype _Nullable)sharedInstance { ++ (instancetype)sharedInstance { static GRPCInsecureChannelFactory *instance; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ @@ -34,8 +32,8 @@ NS_ASSUME_NONNULL_BEGIN return instance; } -- (grpc_channel *_Nullable)createChannelWithHost:(NSString *)host - channelArgs:(NSDictionary *_Nullable)args { +- (grpc_channel *)createChannelWithHost:(NSString *)host + channelArgs:(NSDictionary *)args { grpc_channel_args *coreChannelArgs = GRPCBuildChannelArgs([args copy]); grpc_channel *unmanagedChannel = grpc_insecure_channel_create(host.UTF8String, coreChannelArgs, NULL); @@ -44,5 +42,3 @@ NS_ASSUME_NONNULL_BEGIN } @end - -NS_ASSUME_NONNULL_END |