Browse Source

Test Decoder fix

Jon Mårtensson 3 years ago
parent
commit
fa49eed0d8
1 changed files with 1 additions and 1 deletions
  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)
                 }
             } else {
-                try save([value], to: directory, as: path, encoder: encoder)
+                try? save([value], to: directory, as: path, encoder: encoder)
             }
         } catch {
             throw error