From f8f690f63574ba2e09959fd9addae1377bbb0d9b Mon Sep 17 00:00:00 2001 From: patrick piemonte Date: Tue, 13 Jun 2017 13:41:31 -0700 Subject: [PATCH] Zip, unzipFile, allow a progress handler to not be provided --- Zip/Zip.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zip/Zip.swift b/Zip/Zip.swift index 80722dc..7729643 100644 --- a/Zip/Zip.swift +++ b/Zip/Zip.swift @@ -82,7 +82,7 @@ public class Zip { - notes: Supports implicit progress composition */ - public class func unzipFile(_ zipFilePath: URL, destination: URL, overwrite: Bool, password: String?, progress: ((_ progress: Double) -> ())?) throws { + public class func unzipFile(_ zipFilePath: URL, destination: URL, overwrite: Bool, password: String?, progress: ((_ progress: Double) -> ())? = nil) throws { // File manager let fileManager = FileManager.default -- 2.26.2