Skip to content

Commit

Permalink
Updated UserDefaultsStore
Browse files Browse the repository at this point in the history
  • Loading branch information
yakovmanshin committed May 12, 2024
1 parent 5713a08 commit 3a507dd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ final public class UserDefaultsStore {
self.userDefaults = userDefaults
}

deinit {
userDefaults.synchronize()
}

}

// MARK: - SynchronousMutableFeatureFlagStore
Expand All @@ -48,10 +52,6 @@ extension UserDefaultsStore: SynchronousMutableFeatureFlagStore {
userDefaults.removeObject(forKey: key)
}

public func saveChangesSync() {
userDefaults.synchronize()
}

}

#endif

0 comments on commit 3a507dd

Please sign in to comment.