diff --git a/Sources/YMFF/FeatureFlagResolver/FeatureFlagResolver.swift b/Sources/YMFF/FeatureFlagResolver/FeatureFlagResolver.swift index d48d1a0..4f3d560 100644 --- a/Sources/YMFF/FeatureFlagResolver/FeatureFlagResolver.swift +++ b/Sources/YMFF/FeatureFlagResolver/FeatureFlagResolver.swift @@ -54,9 +54,7 @@ final public class FeatureFlagResolver { extension FeatureFlagResolver: FeatureFlagResolverProtocol { public func value(for key: FeatureFlagKey) async throws -> Value { - let retrievedValue: Value = try await retrieveFirstValue(forKey: key) - - return retrievedValue + try await retrieveFirstValue(forKey: key) } public func setValue(_ newValue: Value, toMutableStoreUsing key: FeatureFlagKey) async throws { @@ -115,9 +113,7 @@ extension FeatureFlagResolver: FeatureFlagResolverProtocol { extension FeatureFlagResolver: SynchronousFeatureFlagResolverProtocol { public func valueSync(for key: FeatureFlagKey) throws -> Value { - let retrievedValue: Value = try retrieveFirstValueSync(forKey: key) - - return retrievedValue + try retrieveFirstValueSync(forKey: key) } public func setValueSync(_ newValue: Value, toMutableStoreUsing key: FeatureFlagKey) throws {