diff --git a/Zip/Zip.swift b/Zip/Zip.swift index b2864b65e0741839c65e73a025913c4010d85057..38a97adba89646cd56f0fcc1b20482b741ed3658 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" {