Skip to content

Commit 25f4a4e

Browse files
committed
remove the last check
1 parent 4a51be4 commit 25f4a4e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/AWSLambdaEvents/Utils/DateWrappers.swift

+1-5
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@ public struct RFC5322DateTimeCoding: Decodable, Sendable {
120120

121121
do {
122122
#if canImport(FoundationEssentials)
123-
if #available(macOS 12.0, *) {
124-
self.wrappedValue = try Date(string, strategy: Self.rfc5322DateParseStrategy)
125-
} else {
126-
self.wrappedValue = try Self.rfc5322DateParseStrategy.parse(string)
127-
}
123+
self.wrappedValue = try Date(string, strategy: Self.rfc5322DateParseStrategy)
128124
#else
129125
self.wrappedValue = try Self.rfc5322DateParseStrategy.parse(string)
130126
#endif

0 commit comments

Comments
 (0)