Skip to content

Commit

Permalink
Mark session task return as discardable
Browse files Browse the repository at this point in the history
  • Loading branch information
p2 committed Sep 24, 2016
1 parent fb97979 commit 4bc2303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Base/OAuth2RequestPerformer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ open class OAuth2DataTaskRequestPerformer: OAuth2RequestPerformer {
- parameter completionHandler: The completion handler to call when the load request is complete.
- returns: An already running session data task
*/
@discardableResult
open func perform(request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionTask? {
let task = session.dataTask(with: request, completionHandler: completionHandler)
task.resume()
Expand Down

0 comments on commit 4bc2303

Please sign in to comment.