Skip to content

Commit

Permalink
FeatureFlag.removeValueFromMutableStores()
Browse files Browse the repository at this point in the history
  • Loading branch information
yakovmanshin committed May 12, 2024
1 parent f86cd99 commit 8bb9c8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/YMFF/FeatureFlag/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final public class FeatureFlag<RawValue, Value> {
/// Removes the value from the first mutable feature flag store which contains one for `key`.
///
/// + Errors thrown by `resolver` are ignored.
public func removeValueFromMutableStore() {
public func removeValueFromMutableStores() {
try? resolver.removeValueSync(for: key)
}

Expand Down
4 changes: 2 additions & 2 deletions Tests/YMFFTests/Cases/FeatureFlagTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ final class FeatureFlagTests: XCTestCase {

resolver.removeValueFromMutableStoreSync_result = .success(())

$stringFeatureFlag.removeValueFromMutableStore()
$stringFeatureFlag.removeValueFromMutableStores()

XCTAssertEqual(resolver.removeValueFromMutableStoreSync_invocationCount, 1)
XCTAssertEqual(resolver.removeValueFromMutableStoreSync_keys, ["TEST_string_key"])
Expand All @@ -145,7 +145,7 @@ final class FeatureFlagTests: XCTestCase {

resolver.removeValueFromMutableStoreSync_result = .failure(SomeError())

$stringFeatureFlag.removeValueFromMutableStore()
$stringFeatureFlag.removeValueFromMutableStores()

XCTAssertEqual(resolver.removeValueFromMutableStoreSync_invocationCount, 1)
XCTAssertEqual(resolver.removeValueFromMutableStoreSync_keys, ["TEST_string_key"])
Expand Down

0 comments on commit 8bb9c8c

Please sign in to comment.