Skip to content

Commit afd7ff2

Browse files
committed
deal with unsupported data format
1 parent 5d2984b commit afd7ff2

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

AnimalsApp/AnimalsApp/Models/Animals.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ struct Animal: Codable {
3232
case image
3333
case createdAt = "created_at"
3434
case updatedAt = "updated_at"
35-
36-
// init(from decoder: Decoder) throws {
37-
// let label = try decoder.singleValueContainer().decode(String.self)
38-
// self = CodingKeys(rawValue: label) ?? .unsupported
39-
// }
40-
}
41-
42-
35+
}
4336
}
4437

4538
extension Animal {

0 commit comments

Comments
 (0)