Skip to content

Commit 8b3f49e

Browse files
committed
Fix warnings and run swiftformat
3.0-preview
1 parent e5993c4 commit 8b3f49e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Tests/CoreDataRepositoryTests/CRUDRepositoryTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ final class CRUDRepositoryTests: CoreDataXCTestCase {
3232
}
3333

3434
func testCreateFailure() async throws {
35-
let historyTimeStamp = Date()
3635
let transactionAuthor: String = #function
3736
let movie = Movie(id: UUID(), title: "Create Success", releaseDate: Date(), boxOffice: 100)
38-
var existingMovie = try await repositoryContext().perform(schedule: .immediate) {
37+
let existingMovie = try await repositoryContext().perform(schedule: .immediate) {
3938
let object = try ManagedMovie(context: self.repositoryContext())
4039
try movie.updating(managed: object)
4140
try self.repositoryContext().save()

Tests/CoreDataRepositoryTests/CoreDataXCTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CoreDataXCTestCase: XCTestCase {
9090
let historyResult = try XCTUnwrap(repositoryContext().execute(historyRequest) as? NSPersistentHistoryResult)
9191
let history = try XCTUnwrap(historyResult.result as? [NSPersistentHistoryTransaction])
9292
XCTAssertGreaterThan(history.count, 0)
93-
history.forEach { historyTransaction in
93+
for historyTransaction in history {
9494
XCTAssertEqual(historyTransaction.author, transactionAuthor)
9595
}
9696
}

0 commit comments

Comments
 (0)