Преглед изворни кода

Removed session delegate precondition check due to swizzling frameworks (#2783)

Christian Noon пре 6 година
родитељ
комит
8efd2d90b4
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      Source/Session.swift

+ 0 - 2
Source/Session.swift

@@ -54,8 +54,6 @@ open class Session {
                 redirectHandler: RedirectHandler? = nil,
                 cachedResponseHandler: CachedResponseHandler? = nil,
                 eventMonitors: [EventMonitor] = []) {
-        precondition(session.delegate === delegate,
-                     "SessionManager(session:) initializer must be passed the delegate that has been assigned to the URLSession as the SessionDataProvider.")
         precondition(session.delegateQueue.underlyingQueue === rootQueue,
                      "SessionManager(session:) intializer must be passed the DispatchQueue used as the delegateQueue's underlyingQueue as rootQueue.")