From d6d00b2f753090d1262f430a25b1ee4ab3d46b3d Mon Sep 17 00:00:00 2001 From: noppe Date: Sun, 20 Oct 2024 22:39:11 +0900 Subject: [PATCH] Update Client.swift --- Sources/AppleAPI/Client.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AppleAPI/Client.swift b/Sources/AppleAPI/Client.swift index eac9f89..b9ba89a 100644 --- a/Sources/AppleAPI/Client.swift +++ b/Sources/AppleAPI/Client.swift @@ -70,7 +70,7 @@ public class Client { let authServiceKey: String? } - let response = try! JSONDecoder().decode(ServiceKeyResponse.self, from: data) + let response = try JSONDecoder().decode(ServiceKeyResponse.self, from: data) serviceKey = response.authServiceKey return self.loadHashcash(accountName: accountName, serviceKey: serviceKey).map { (serviceKey, $0) }