Jelajahi Sumber

Test Decoder fix

Jon Mårtensson 3 tahun lalu
induk
melakukan
fa49eed0d8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      FreeAPS/Sources/Services/Storage/Disk/Disk+Codable.swift

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

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