Просмотр исходного кода

Fixed up if statement formatting…no functional changes.

Christian Noon 9 лет назад
Родитель
Сommit
3fee3ba106
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/TaskDelegate.swift

+ 2 - 1
Source/TaskDelegate.swift

@@ -104,7 +104,8 @@ open class TaskDelegate: NSObject {
         } else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust {
         } else if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust {
             let host = challenge.protectionSpace.host
             let host = challenge.protectionSpace.host
 
 
-            if let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host),
+            if
+                let serverTrustPolicy = session.serverTrustPolicyManager?.serverTrustPolicy(forHost: host),
                 let serverTrust = challenge.protectionSpace.serverTrust
                 let serverTrust = challenge.protectionSpace.serverTrust
             {
             {
                 if serverTrustPolicy.evaluate(serverTrust, forHost: host) {
                 if serverTrustPolicy.evaluate(serverTrust, forHost: host) {