Skip to content

Commit

Permalink
Minor changes to APIManager
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Sep 17, 2021
1 parent 8ed72c7 commit 07babd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Managers/APIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ extension APIManager {
throw KnownError.missingBundleID
}

var apiModel: APIModel
do {
let url = try makeITunesURL()
let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 30)
let (data, response) = await try URLSession.shared.data(for: request)
let (data, response) = try await URLSession.shared.data(for: request)
return try processVersionCheckResults(withData: data, response: response)
} catch {
throw error
Expand Down

0 comments on commit 07babd6

Please sign in to comment.