indentation
This commit is contained in:
parent
ea6089e772
commit
a7c25f0bdf
@ -58,8 +58,6 @@ public struct ModelRegistry {
|
||||
return getCategory(for: type)?.instanceTypes[name]
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static func getCategory(for typeString: String) -> Category? {
|
||||
|
||||
for (_, value) in categories where value.codingKey == typeString {
|
||||
@ -73,8 +71,6 @@ public struct ModelRegistry {
|
||||
return getCategory(for: typeString)?.instanceTypes[name]
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static func getCodingKey<T>(for type: T.Type) throws -> AnyCodingKey{
|
||||
guard let category = getCategory(for: type) else {
|
||||
throw ModelRegistry.Error.decoderOther(message: "decodeModelsIfPresent only works for objects implementing the Model protocol")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user