Skip to content

Commit f8f690f

Browse files
committed
Zip, unzipFile, allow a progress handler to not be provided
1 parent 4a15a78 commit f8f690f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zip/Zip.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class Zip {
8282
- notes: Supports implicit progress composition
8383
*/
8484

85-
public class func unzipFile(_ zipFilePath: URL, destination: URL, overwrite: Bool, password: String?, progress: ((_ progress: Double) -> ())?) throws {
85+
public class func unzipFile(_ zipFilePath: URL, destination: URL, overwrite: Bool, password: String?, progress: ((_ progress: Double) -> ())? = nil) throws {
8686

8787
// File manager
8888
let fileManager = FileManager.default

0 commit comments

Comments
 (0)