diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/DeleteHighlight.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/DeleteHighlight.swift index a491ec1b8..98f5bf032 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/DeleteHighlight.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/DeleteHighlight.swift @@ -59,14 +59,14 @@ public extension DataService { highlight.remove(inContext: context) } else { highlight.serverSyncStatus = Int64(ServerSyncStatus.needsDeletion.rawValue) + } - do { - try context.save() - logger.debug("Highlight deleted succesfully") - } catch { - context.rollback() - logger.debug("Failed to delete Highlight: \(error.localizedDescription)") - } + do { + try context.save() + logger.debug("Highlight deleted succesfully") + } catch { + context.rollback() + logger.debug("Failed to delete Highlight: \(error.localizedDescription)") } } }