diff --git a/TheMovieManager/Model/TMDB Client/TMDBClient.swift b/TheMovieManager/Model/TMDB Client/TMDBClient.swift index ed6e33d..6b8fdf7 100644 --- a/TheMovieManager/Model/TMDB Client/TMDBClient.swift +++ b/TheMovieManager/Model/TMDB Client/TMDBClient.swift @@ -57,7 +57,7 @@ class TMDBClient { } - class func taskForGETRequest(url: URL, responseType: ResponseType.Type, completion: @escaping (ResponseType?, Error?) -> Void) -> URLSessionTask{ + @discardableResult class func taskForGETRequest(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 {