Skip to content

Commit 2254a13

Browse files
authored
Merge pull request #3123 from justinmcp/justinmcp/jsonencoder-fix-1
2 parents aa44546 + cf3320c commit 2254a13

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sources/Foundation/JSONEncoder.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ extension JSONEncoderImpl: _SpecialTreatmentEncoder {
448448
return .number(decimal.description)
449449
case let object as [String: Encodable]: // this emits a warning, but it works perfectly
450450
return try self.wrapObject(object, for: nil)
451-
case let date as Date:
452-
return try self.wrapDate(date, for: nil)
453451
default:
454452
try encodable.encode(to: self)
455453
return self.value ?? .object([:])

0 commit comments

Comments
 (0)