Skip to content

Commit

Permalink
fixed issue #7 - Silence warnings for unused return type in taskForGE…
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalerdal committed May 27, 2021
1 parent 036a5fe commit c80e4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TheMovieManager/Model/TMDB Client/TMDBClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TMDBClient {
}


class func taskForGETRequest<ResponseType: Decodable>(url: URL, responseType: ResponseType.Type, completion: @escaping (ResponseType?, Error?) -> Void) -> URLSessionTask{
@discardableResult class func taskForGETRequest<ResponseType: Decodable>(url: URL, responseType: ResponseType.Type, completion: @escaping (ResponseType?, Error?) -> Void) -> URLSessionTask{

let task = URLSession.shared.dataTask(with: url) { data, response, error in
guard let data = data else {
Expand Down

0 comments on commit c80e4ee

Please sign in to comment.