Skip to content

Commit

Permalink
add unchecked sendable to BankAPIJSONDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRidh committed Oct 17, 2024
1 parent 2f1b933 commit c98dd8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/Pokepay/BankAPI/BankAPIJSONDecoder.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
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'"
dateFormatter.timeZone = TimeZone(secondsFromGMT: 0)
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
dateDecodingStrategy = .formatted(dateFormatter)
}
}
}

0 comments on commit c98dd8e

Please sign in to comment.