From 624a149987b6e48bfe4498cc2d2f651a1b12b5ab Mon Sep 17 00:00:00 2001 From: peterboni Date: Sat, 25 Nov 2017 08:38:03 +0800 Subject: [PATCH] Fix Swift 4 string compiler deprecation warning. --- Zip/Zip.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zip/Zip.swift b/Zip/Zip.swift index 4c165ab..544e300 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -148,7 +148,7 @@ public class Zip { var pathString = String(cString: fileName) - guard pathString.characters.count > 0 else { + guard pathString.count > 0 else { throw ZipError.unzipFail } -- 2.26.2