Browse Source

IPS-9 Eliminate more CC

IPS-9
Dirk Zimmermann 3 months ago
parent
commit
cb33c8a330
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      xcode/PEPSCTPTransport/PEPSCTPTransport/Error/NSError+PEPSCTPTransport.m
  2. +2
    -2
      xcode/PEPSCTPTransport/PEPSCTPTransport/PEPSCTPTransport.m

+ 1
- 1
xcode/PEPSCTPTransport/PEPSCTPTransport/Error/NSError+PEPSCTPTransport.m View File

@ -65,7 +65,7 @@ NSString *const _Nonnull PEPErrorDomain = @"PEPCCErrorDomain";
+ (NSError * _Nullable)errorWithPEPTransportStatusCode:(PEPTransportStatusCode)statusCode
{
if ([self isErrorCCTransportStatusCode:statusCode]) {
if ([self isErrorTransportStatusCode:statusCode]) {
NSDictionary *dict = [NSDictionary
dictionaryWithObjectsAndKeys:localizedErrorStringFromPEPTransportStatusCode(statusCode),
NSLocalizedDescriptionKey, nil];


+ 2
- 2
xcode/PEPSCTPTransport/PEPSCTPTransport/PEPSCTPTransport.m View File

@ -57,9 +57,9 @@ BOOL setTransportStatusCodeError(PEPTransportStatusCode transportStatusCode,
PEPTransportStatusCode * _Nonnull targetTransportStatusCode,
NSError * _Nullable __autoreleasing * _Nullable error)
{
if ([NSError isErrorCCTransportStatusCode:transportStatusCode]) {
if ([NSError isErrorTransportStatusCode:transportStatusCode]) {
if (error != nil) {
*error = [NSError errorWithPEPCCTransportStatusCode:transportStatusCode];
*error = [NSError errorWithPEPTransportStatusCode:transportStatusCode];
}
*targetTransportStatusCode = transportStatusCode;


Loading…
Cancel
Save