From a70912414c0deb9f3b783a943c56bf47a4422d1d Mon Sep 17 00:00:00 2001 From: David Jones Date: Wed, 17 Jul 2019 11:26:48 +0100 Subject: [PATCH] ci: Enable Xcode11 build (#19) --- .travis.yml | 9 ++++----- Sources/CryptorECC/ECPublicKey.swift | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7bc942a..0d0cf4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,11 +47,10 @@ matrix: - os: osx osx_image: xcode10.2 sudo: required -# Pending Travis Xcode 11 image -# - os: osx -# osx_image: xcode11 -# sudo: required -# env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT + - os: osx + osx_image: xcode11 + sudo: required + env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT before_install: - git clone https://github.com/IBM-Swift/Package-Builder.git diff --git a/Sources/CryptorECC/ECPublicKey.swift b/Sources/CryptorECC/ECPublicKey.swift index e00c0cb..4189b00 100644 --- a/Sources/CryptorECC/ECPublicKey.swift +++ b/Sources/CryptorECC/ECPublicKey.swift @@ -82,7 +82,7 @@ public class ECPublicKey { */ public convenience init(key: String) throws { let strippedKey = String(key.filter { !" \n\t\r".contains($0) }) - var pemComponents = strippedKey.components(separatedBy: "-----") + let pemComponents = strippedKey.components(separatedBy: "-----") guard pemComponents.count == 5 else { throw ECError.invalidPEMString }