Ver código fonte

Merge branch 'coreData' into bdb_dev

Jon B.M 3 anos atrás
pai
commit
51197f6ad9

+ 1 - 1
FreeAPS/Sources/Services/Storage/Disk/Disk+Codable.swift

@@ -66,7 +66,7 @@ public extension Disk {
                     try newData.write(to: url, options: .atomic)
                 }
             } else {
-                try save([value], to: directory, as: path, encoder: encoder)
+                try? save([value], to: directory, as: path, encoder: encoder)
             }
         } catch {
             throw error