Skip to content

Commit

Permalink
Fix warnings about possibly wrong inferred type in NSURLSession
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline75489 committed Jun 24, 2017
1 parent c4b672b commit f4f57c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Foundation/NSURLSession/NSURLSession.swift
Expand Up @@ -191,7 +191,7 @@ open class URLSession : NSObject {
internal let taskRegistry = URLSession._TaskRegistry()
fileprivate let identifier: Int32
fileprivate var invalidated = false
fileprivate static let registerProtocols = {
fileprivate static let registerProtocols: () = {
// TODO: We register all the native protocols here.
let _ = URLProtocol.registerClass(_HTTPURLProtocol.self)
}()
Expand Down

0 comments on commit f4f57c7

Please sign in to comment.