This commit is contained in:
panxi 2019-12-13 15:20:11 -05:00
parent d75a152b9a
commit 4a05db9c9a

View File

@ -49,7 +49,7 @@ extension KeyedDecodingContainer where Key: CodingKey {
var meta: KeyedDecodingContainer<C>? var meta: KeyedDecodingContainer<C>?
do { do {
meta = try self.nestedContainer(keyedBy: C.self, forKey: codingKey) meta = try self.nestedContainer(keyedBy: C.self, forKey: codingKey)
}git catch { } catch {
return nil return nil
} }
guard let type = try meta?.decodeIfPresent(String.self, forKey: typeCodingKey) else { guard let type = try meta?.decodeIfPresent(String.self, forKey: typeCodingKey) else {