Skip to content

Commit 0601c73

Browse files
committed
fix casting
1 parent 89dc27f commit 0601c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIKit/APIKit.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private extension NSURLSessionDataTask {
4242

4343
private var completionHandler: ((NSData, NSURLResponse?, NSError?) -> Void)? {
4444
get {
45-
return (objc_getAssociatedObject(self, &dataTaskCompletionHandlerKey) as? Box<(NSData?, NSURLResponse?, NSError?) -> Void>)?.unbox
45+
return (objc_getAssociatedObject(self, &dataTaskCompletionHandlerKey) as? Box<(NSData, NSURLResponse?, NSError?) -> Void>)?.unbox
4646
}
4747

4848
set {

0 commit comments

Comments
 (0)