Skip to content

Commit dfc1ddb

Browse files
committed
Consistent with optionalness of closure
1 parent c1241eb commit dfc1ddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NetworkingInOperations-Example/Networking/ConcurrentOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ConcurrentOperation<Value>: Operation, @unchecked Sendable {
1919

2020
// MARK: - Init
2121

22-
init(completionHandler: @escaping (_ result: Result<Value, Error>) -> Void) {
22+
init(completionHandler: ((_ result: Result<Value, Error>) -> Void)?) {
2323
self.completionHandler = completionHandler
2424

2525
super.init()

0 commit comments

Comments
 (0)