From 9654da1d4fd767b284bec7a3a171a4b2aebae69f Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 9 Jun 2022 16:11:29 +0200 Subject: [PATCH] Attempt fix --- Sources/Push/PushClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Push/PushClient.swift b/Sources/Push/PushClient.swift index c025c27..16633af 100644 --- a/Sources/Push/PushClient.swift +++ b/Sources/Push/PushClient.swift @@ -179,7 +179,7 @@ public final class PushClient { @available(iOS 15.0, *) private func post(_ request: URLRequest) async -> Data? { do { - let (data, response) = try await URLSession.shared.data(for: request) + let (data, response) : (Data, URLResponse) = try await URLSession.shared.data(for: request) guard let httpResponse = response as? HTTPURLResponse else { return nil }