Skip to content

Commit

Permalink
Fixlint
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Aug 31, 2024
1 parent 829768c commit 53ff5ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Model/Migration/MigrationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ struct MigrationService {

func migrateAll(using userDefaults: UserDefaulting = UserDefaults.standard) -> Bool {
var allSucceeded = true
for migration in migrations {
if migration.migrate(userDefaults) == false {
allSucceeded = false
}
for migration in migrations where migration.migrate(userDefaults) == false {
allSucceeded = false
}
return allSucceeded
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/MigrationServiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final class MigrationServiceTests: XCTestCase {
private final class MockUserDefaults: UserDefaulting {
private var values: [String: Bool]

init(values: [String : Bool] = [:]) {
init(values: [String: Bool] = [:]) {
self.values = values
}

Expand Down

0 comments on commit 53ff5ea

Please sign in to comment.