From c98dd8e619a3f3fa892e54736c7fad7d84b26194 Mon Sep 17 00:00:00 2001 From: DanRidh Date: Thu, 17 Oct 2024 13:25:44 +0900 Subject: [PATCH] add unchecked sendable to BankAPIJSONDecoder --- Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift b/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift index 84b6770..82f4189 100644 --- a/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift +++ b/Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift @@ -1,7 +1,8 @@ import Foundation -public class BankAPIJSONDecoder : JSONDecoder { -public let dateFormatter = DateFormatter() +public class BankAPIJSONDecoder: JSONDecoder, @unchecked Sendable { + public let dateFormatter = DateFormatter() + override public init() { super.init() dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS'Z'" @@ -9,4 +10,4 @@ public let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US_POSIX") dateDecodingStrategy = .formatted(dateFormatter) } -} +} \ No newline at end of file