From 67cf1f2e2e3832ef5d23908fef8eb21cecf6635f Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 16 Jul 2019 15:21:59 +0100 Subject: [PATCH] Resolve compilation warning --- Sources/CryptorRSA/CryptorRSAUtilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CryptorRSA/CryptorRSAUtilities.swift b/Sources/CryptorRSA/CryptorRSAUtilities.swift index d2e8a82..ae47907 100644 --- a/Sources/CryptorRSA/CryptorRSAUtilities.swift +++ b/Sources/CryptorRSA/CryptorRSAUtilities.swift @@ -231,7 +231,7 @@ public extension CryptorRSA { throw Error(code: ERR_STRIP_PK_HEADER, reason: "Provided public key is empty") } - var byteArray = [UInt8](keyData) + let byteArray = [UInt8](keyData) var index = 0 guard byteArray[index] == 0x30 else {