Skip to content

Commit

Permalink
Removed unnecessary calls to self in SessionDelegate...no functional …
Browse files Browse the repository at this point in the history
…changes.
  • Loading branch information
cnoon committed Sep 17, 2015
1 parent 6ac4ce1 commit a1233bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -651,15 +651,15 @@ public class Manager {
public override func respondsToSelector(selector: Selector) -> Bool {
switch selector {
case "URLSession:didBecomeInvalidWithError:":
return (self.sessionDidBecomeInvalidWithError != nil)
return sessionDidBecomeInvalidWithError != nil
case "URLSession:didReceiveChallenge:completionHandler:":
return (self.sessionDidReceiveChallenge != nil)
return sessionDidReceiveChallenge != nil
case "URLSessionDidFinishEventsForBackgroundURLSession:":
return (self.sessionDidFinishEventsForBackgroundURLSession != nil)
return sessionDidFinishEventsForBackgroundURLSession != nil
case "URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:":
return (self.taskWillPerformHTTPRedirection != nil)
return taskWillPerformHTTPRedirection != nil
case "URLSession:dataTask:didReceiveResponse:completionHandler:":
return (self.dataTaskDidReceiveResponse != nil)
return dataTaskDidReceiveResponse != nil
default:
return self.dynamicType.instancesRespondToSelector(selector)
}
Expand Down

0 comments on commit a1233bc

Please sign in to comment.