Skip to content

Commit

Permalink
Fixlint
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH authored and kelson42 committed Sep 2, 2024
1 parent e3e11d2 commit 4c842e1
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 4c842e1

Please sign in to comment.