From 1d10acb6cfc689b3836a579c1b1a068324ef427b Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Wed, 6 Sep 2017 22:35:58 +0300 Subject: [PATCH] Remove unnecessary nullable keywords from method definitions --- OpenVPN Adapter/OpenVPNAdapter.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenVPN Adapter/OpenVPNAdapter.mm b/OpenVPN Adapter/OpenVPNAdapter.mm index 855edbd..b1b0fc7 100644 --- a/OpenVPN Adapter/OpenVPNAdapter.mm +++ b/OpenVPN Adapter/OpenVPNAdapter.mm @@ -434,7 +434,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData #pragma mark Client Configuration -- (OpenVPNProperties *)applyConfiguration:(nonnull OpenVPNConfiguration *)configuration error:(out NSError * __nullable * __nullable)error { +- (OpenVPNProperties *)applyConfiguration:(nonnull OpenVPNConfiguration *)configuration error:(out NSError **)error { ClientAPI::EvalConfig eval = self.vpnClient->eval_config(configuration.config); if (eval.error) { NSString *errorReason = [self reasonForError:OpenVPNAdapterErrorConfigurationFailure]; @@ -451,7 +451,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData return [[OpenVPNProperties alloc] initWithEvalConfig:eval]; } -- (BOOL)provideCredentials:(nonnull OpenVPNCredentials *)credentials error:(out NSError * __nullable * __nullable)error { +- (BOOL)provideCredentials:(nonnull OpenVPNCredentials *)credentials error:(out NSError **)error { ClientAPI::Status status = self.vpnClient->provide_creds(credentials.credentials); if (status.error) { if (error) {