Skip to content

Commit f4f57c7

Browse files
committed
Fix warnings about possibly wrong inferred type in NSURLSession
1 parent c4b672b commit f4f57c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSURLSession/NSURLSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ open class URLSession : NSObject {
191191
internal let taskRegistry = URLSession._TaskRegistry()
192192
fileprivate let identifier: Int32
193193
fileprivate var invalidated = false
194-
fileprivate static let registerProtocols = {
194+
fileprivate static let registerProtocols: () = {
195195
// TODO: We register all the native protocols here.
196196
let _ = URLProtocol.registerClass(_HTTPURLProtocol.self)
197197
}()

0 commit comments

Comments
 (0)