Przeglądaj źródła

Uncomment import check which was commented out for debugging purposes

polscm32 aka Marvout 1 rok temu
rodzic
commit
4142b1af61
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      Model/MigrationScript.swift

+ 4 - 4
Model/MigrationScript.swift

@@ -37,10 +37,10 @@ class JSONImporter {
     ) async {
         let hasImported = UserDefaults.standard.bool(forKey: userDefaultsKey)
 
-//            guard !hasImported else {
-//                debugPrint("\(filePathComponent) already imported. Skipping import.")
-//                return
-//            }
+            guard !hasImported else {
+                debugPrint("\(filePathComponent) already imported. Skipping import.")
+                return
+            }
 
         do {
             // Get the file path for the JSON file