diff options
author | 2018-10-19 17:57:26 -0700 | |
---|---|---|
committer | 2018-10-19 17:57:26 -0700 | |
commit | 17d178363dafe3aa03d348bdbbbd0c3daed9e06e (patch) | |
tree | c6ee42caf45b8f34a8a9c11a41073080461e613c | |
parent | b3cb4e17f76624e563e51165954ebaa6224d806c (diff) |
rename non-const variables
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m index 3f2769bf44..aa8b52e6b8 100644 --- a/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m +++ b/src/objective-c/GRPCClient/private/GRPCSecureChannelFactory.m @@ -55,7 +55,7 @@ NS_ASSUME_NONNULL_BEGIN certChain:(nullable NSString *)certChain error:(NSError **)errorPtr { static NSData *defaultRootsASCII; - static NSError *kDefaultRootsError; + static NSError *defaultRootsError; static dispatch_once_t loading; dispatch_once(&loading, ^{ NSString *defaultPath = @"gRPCCertificates.bundle/roots"; // .pem @@ -68,7 +68,7 @@ NS_ASSUME_NONNULL_BEGIN NSString *contentInUTF8 = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error]; if (contentInUTF8 == nil) { - kDefaultRootsError = error; + defaultRootsError = error; return; } defaultRootsASCII = [self nullTerminatedDataWithString:contentInUTF8]; @@ -80,15 +80,15 @@ NS_ASSUME_NONNULL_BEGIN } else { if (defaultRootsASCII == nil) { if (errorPtr) { - *errorPtr = kDefaultRootsError; + *errorPtr = defaultRootsError; } NSAssert( - kDefaultRootsASCII, + defaultRootsASCII, @"Could not read gRPCCertificates.bundle/roots.pem. This file, " "with the root certificates, is needed to establish secure (TLS) connections. " "Because the file is distributed with the gRPC library, this error is usually a sign " "that the library wasn't configured correctly for your project. Error: %@", - kDefaultRootsError); + defaultRootsError); return nil; } rootsASCII = defaultRootsASCII; |