Skip to content

Commit

Permalink
Removed session delegate precondition check due to swizzling framewor…
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon authored Apr 6, 2019
1 parent 4df5912 commit 8efd2d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 8efd2d9

Please sign in to comment.