Skip to content

Commit

Permalink
explicit self
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Rebello <[email protected]>
  • Loading branch information
rebello95 committed Jan 9, 2025
1 parent ff35359 commit 8043d87
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,37 +200,37 @@ extension URLSessionDelegateWrapper: URLSessionDataDelegate {
_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
) {
client?.urlSession(
self.client?.urlSession(
session, dataTask: dataTask, didReceive: response, completionHandler: completionHandler
)
}

func urlSession(
_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data
) {
client?.urlSession(session, dataTask: dataTask, didReceive: data)
self.client?.urlSession(session, dataTask: dataTask, didReceive: data)
}

func urlSession(
_ session: URLSession, task: URLSessionTask,
needNewBodyStream completionHandler: @escaping (InputStream?) -> Void
) {
client?.urlSession(session, task: task, needNewBodyStream: completionHandler)
self.client?.urlSession(session, task: task, needNewBodyStream: completionHandler)
}
}

extension URLSessionDelegateWrapper: URLSessionTaskDelegate {
func urlSession(
_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Swift.Error?
) {
client?.urlSession(session, task: task, didCompleteWithError: error)
self.client?.urlSession(session, task: task, didCompleteWithError: error)
}

func urlSession(
_ session: URLSession, task: URLSessionTask,
didFinishCollecting metrics: URLSessionTaskMetrics
) {
client?.urlSession(session, task: task, didFinishCollecting: metrics)
self.client?.urlSession(session, task: task, didFinishCollecting: metrics)
}
}

Expand Down

0 comments on commit 8043d87

Please sign in to comment.