Skip to content

Commit 8804c6c

Browse files
committed
lint
1 parent b23e5e9 commit 8804c6c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Modules/Sources/Storage/CoreData/CoreDataIterativeMigrator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ private extension CoreDataIterativeMigrator {
199199
let shouldDestroy = versionNumber < destroyThreshold
200200

201201
if shouldDestroy {
202-
DDLogInfo("Purge migration: Source version \(sourceVersion.name) (\(versionNumber)) is older than threshold \(destroyThreshold). Will nuke database.")
202+
DDLogInfo("Direct migration: Source \(sourceVersion.name) (\(versionNumber)) is older than threshold \(destroyThreshold). Nuke database.")
203203
} else {
204-
DDLogInfo("Iterative migration: Source version \(sourceVersion.name) (\(versionNumber)) is newer than threshold \(destroyThreshold). Will migrate incrementally.")
204+
DDLogInfo("Iterative migration: Source \(sourceVersion.name) (\(versionNumber)) is newer than threshold \(destroyThreshold). Migrate incrementally.")
205205
}
206206
return shouldDestroy
207207
}
@@ -211,7 +211,7 @@ private extension CoreDataIterativeMigrator {
211211
try persistentStoreCoordinator.destroyPersistentStore(at: sourceStoreURL, ofType: storeType, options: nil)
212212
DDLogInfo("[CoreDataIterativeMigrator] Database at \(sourceStoreURL) destroyed successfully.")
213213
} catch {
214-
DDLogError("[CoreDataIterativeMigrator] Failed to destroy database during direct migration path. Error \(error). Will fall back to iterative migration.")
214+
DDLogError("[CoreDataIterativeMigrator] Failed direct migration. Will fall back to iterative migration. Error \(error)")
215215
}
216216
}
217217
}

Modules/Tests/StorageTests/CoreData/CoreDataIterativeMigratorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ final class CoreDataIterativeMigratorTests: XCTestCase {
331331
// Then
332332
XCTAssertEqual(foundVersion?.name, "Model 10")
333333
}
334-
334+
335335
func test_findSourceVersion_when_unknown_model_then_returns_nil() throws {
336336
// Given
337337
let fakeModel = NSManagedObjectModel()
@@ -342,7 +342,7 @@ final class CoreDataIterativeMigratorTests: XCTestCase {
342342
// Then
343343
XCTAssertNil(foundVersion)
344344
}
345-
345+
346346
func test_findSourceVersion_when_invoked_then_handles_base_model() throws {
347347
// Given
348348
let baseVersion = ManagedObjectModelsInventory.ModelVersion(name: "Model")

0 commit comments

Comments
 (0)