From d75a152b9a35a85efa34fd3923753acb520e0bcd Mon Sep 17 00:00:00 2001 From: panxi Date: Fri, 13 Dec 2019 15:19:44 -0500 Subject: [PATCH] rename --- MVMCore/MVMCore/Models/Model/ModelRegistry.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift index 2a3ebb2..df09507 100644 --- a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift +++ b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift @@ -46,13 +46,13 @@ extension KeyedDecodingContainer where Key: CodingKey { //MARK: - DecodeIfPresent public func decodeIfPresent(codingKey: KeyedDecodingContainer.Key, typeCodingKey: C) throws -> T? { //get the type string - var me: KeyedDecodingContainer? + var meta: KeyedDecodingContainer? do { - me = try self.nestedContainer(keyedBy: C.self, forKey: codingKey) - } catch { + meta = try self.nestedContainer(keyedBy: C.self, forKey: codingKey) + }git catch { return nil } - guard let type = try me?.decodeIfPresent(String.self, forKey: typeCodingKey) else { + guard let type = try meta?.decodeIfPresent(String.self, forKey: typeCodingKey) else { return nil }