Skip to content

Commit fc504b4

Browse files
authored
Merge pull request swiftlang#1071 from skyline75489/fix/nsurlsession-registerProtocols-warning
2 parents c4b672b + f4f57c7 commit fc504b4

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)