Skip to content

Commit

Permalink
IOS-1943 Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed Nov 7, 2022
1 parent 038f0a3 commit 161a758
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class AccessCodeRepository {
}
}

self.saveCards()
self.saveCards(cardIds: Set(self.accessCodes.keys))
return .success(())
} catch {
Log.error(error)
Expand Down Expand Up @@ -177,10 +177,6 @@ public class AccessCodeRepository {
return []
}

private func saveCards() {
saveCards(cardIds: Set(accessCodes.keys))
}

private func saveCards(cardIds: Set<String>) {
if let data = try? JSONEncoder().encode(cardIds) {
try? secureStorage.store(data, forKey: .cardsWithSavedCodes)
Expand Down

0 comments on commit 161a758

Please sign in to comment.