From 51f8a88bd3ebd9b8fd831cbd7e81a84095287d2b Mon Sep 17 00:00:00 2001 From: Roy Marmelstein Date: Thu, 17 Mar 2016 07:26:03 +0000 Subject: [PATCH] Fixing warning --- Zip/Zip.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zip/Zip.swift b/Zip/Zip.swift index b2864b6..38a97ad 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -61,7 +61,7 @@ public class Zip { let fileManager = NSFileManager.defaultManager() // Check whether a zip file exists at path. - guard let path = zipFilePath.path, let destinationPath = destination.path else { + guard let path = zipFilePath.path where destination.path != nil else { throw ZipError.FileNotFound } if fileManager.fileExistsAtPath(path) == false || zipFilePath.pathExtension != "zip" { -- 2.26.2