Skip to content

Commit 45c70e0

Browse files
committed
Run swiftformat
feature/add-unmanagedId-property
1 parent e580042 commit 45c70e0

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/Internal/ModelsWithIntId/IdentifiableModel_Int.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ extension IdentifiableModel_IntId: IdentifiedUnmanagedModel {
103103
package var unmanagedId: Int {
104104
id
105105
}
106+
106107
package nonisolated(unsafe) static let managedIdExpression = NSExpression(forKeyPath: \ManagedModel_IntId.id)
107108
}
108109

Sources/Internal/ModelsWithUuidId/IdentifiableModel_Uuid.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ extension IdentifiableModel_UuidId: IdentifiedUnmanagedModel {
103103
package var unmanagedId: UUID {
104104
id
105105
}
106+
106107
package nonisolated(unsafe) static let managedIdExpression = NSExpression(forKeyPath: \ManagedModel_UuidId.id)
107108
}
108109

Tests/CoreDataRepositoryTests/BatchRequestTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ extension CoreDataRepositoryTests {
159159
let count = try repositoryContext.count(for: fetchRequest)
160160
expectNoDifference(count, 0, "Count of objects in CoreData should be zero at the start of each test.")
161161

162-
let _ = try values
162+
_ = try values
163163
.map(mapDictToManagedModel(_:))
164164
try repositoryContext.save()
165165
}
@@ -207,7 +207,7 @@ extension CoreDataRepositoryTests {
207207
let count = try repositoryContext.count(for: fetchRequest)
208208
expectNoDifference(count, 0, "Count of objects in CoreData should be zero at the start of each test.")
209209

210-
let _ = try values
210+
_ = try values
211211
.map(mapDictToManagedModel(_:))
212212
try repositoryContext.save()
213213
}

0 commit comments

Comments
 (0)