From 07babd6e36175e0613e5e75545e1e82e6f40de17 Mon Sep 17 00:00:00 2001 From: Arthur Sabintsev Date: Fri, 17 Sep 2021 01:00:05 -0400 Subject: [PATCH] Minor changes to APIManager --- Sources/Managers/APIManager.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Managers/APIManager.swift b/Sources/Managers/APIManager.swift index de344a1..3c95529 100644 --- a/Sources/Managers/APIManager.swift +++ b/Sources/Managers/APIManager.swift @@ -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