Skip to content

Commit f5c1c3e

Browse files
committed
Remove unnecessary default optional values
1 parent 5c6d445 commit f5c1c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Networking/Networking/Model/Customer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public struct Customer: Codable, GeneratedCopiable, GeneratedFakeable {
4747

4848
let customerID = try container.decode(Int64.self, forKey: .customerID)
4949
let email = try container.decode(String.self, forKey: .email)
50-
let firstName = try container.decodeIfPresent(String.self, forKey: .firstName) ?? ""
51-
let lastName = try container.decodeIfPresent(String.self, forKey: .lastName) ?? ""
50+
let firstName = try container.decodeIfPresent(String.self, forKey: .firstName)
51+
let lastName = try container.decodeIfPresent(String.self, forKey: .lastName)
5252
let billing = try? container.decode(Address.self, forKey: .billing)
5353
let shipping = try? container.decode(Address.self, forKey: .shipping)
5454

0 commit comments

Comments
 (0)