From 70acae79416fb0a9c7950196fc457651126fc8e3 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Mon, 1 Jun 2015 15:06:32 -0500 Subject: [PATCH] #1659 - Converting true to YES, false to NO to match Objective C standards --- platform/ios/MGLMapboxEvents.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 6b3d33f04..bf730af94 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -858,7 +858,7 @@ const NSTimeInterval MGLFlushInterval = 60; // Look for a pinned certificate in the server's certificate chain long numKeys = SecTrustGetCertificateCount(serverTrust); - BOOL found = false; + BOOL found = NO; // Try GeoTrust Cert First for (int lc = 0; lc < numKeys; lc++) { SecCertificateRef certificate = SecTrustGetCertificateAtIndex(serverTrust, lc); @@ -868,7 +868,7 @@ const NSTimeInterval MGLFlushInterval = 60; if ([remoteCertificateData isEqualToData:_geoTrustCert]) { // Found the certificate; continue connecting completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]); - found = true; + found = YES; break; } } @@ -883,7 +883,7 @@ const NSTimeInterval MGLFlushInterval = 60; if ([remoteCertificateData isEqualToData:_digicertCert]) { // Found the certificate; continue connecting completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]); - found = true; + found = YES; break; } } @@ -898,7 +898,7 @@ const NSTimeInterval MGLFlushInterval = 60; if ([remoteCertificateData isEqualToData:_testServerCert]) { // Found the certificate; continue connecting completionHandler(NSURLSessionAuthChallengeUseCredential, [NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust]); - found = true; + found = YES; break; } }