From ddaa146a27ec8551a415e76f1529ed61c8d3bd15 Mon Sep 17 00:00:00 2001 From: David Jones Date: Thu, 25 Jul 2019 10:45:13 +0100 Subject: [PATCH] Resolve compilation warning with Swift 5.1 --- Sources/SSLService/SSLService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SSLService/SSLService.swift b/Sources/SSLService/SSLService.swift index 4487c37..871f98f 100644 --- a/Sources/SSLService/SSLService.swift +++ b/Sources/SSLService/SSLService.swift @@ -1092,7 +1092,7 @@ public class SSLService: SSLServiceDelegate { // -- Cert chain... var certs = [secIdentity] - var ccerts: Array = (dictionary as AnyObject).value(forKey: kSecImportItemCertChain as String) as! Array + let ccerts: Array = (dictionary as AnyObject).value(forKey: kSecImportItemCertChain as String) as! Array for i in 1 ..< ccerts.count { certs += [ccerts[i] as AnyObject]