From 0601c7389df19c02d1d58c1cca82b12e3d6478c7 Mon Sep 17 00:00:00 2001 From: Yosuke Ishikawa Date: Mon, 9 Mar 2015 23:43:40 +0900 Subject: [PATCH] fix casting --- APIKit/APIKit.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APIKit/APIKit.swift b/APIKit/APIKit.swift index 02d479d3..a229e7bb 100644 --- a/APIKit/APIKit.swift +++ b/APIKit/APIKit.swift @@ -42,7 +42,7 @@ private extension NSURLSessionDataTask { private var completionHandler: ((NSData, NSURLResponse?, NSError?) -> Void)? { get { - return (objc_getAssociatedObject(self, &dataTaskCompletionHandlerKey) as? Box<(NSData?, NSURLResponse?, NSError?) -> Void>)?.unbox + return (objc_getAssociatedObject(self, &dataTaskCompletionHandlerKey) as? Box<(NSData, NSURLResponse?, NSError?) -> Void>)?.unbox } set {