From c980d93e67bfa698e55447673d082d463b656606 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 9 Aug 2024 13:18:16 -0400 Subject: [PATCH] return optional feature flag value so default works --- .../_Utils/_FeatureFlags/CompositeFeatureFlagsProvider.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/Utilities/_Utils/_FeatureFlags/CompositeFeatureFlagsProvider.swift b/Utilities/Utilities/_Utils/_FeatureFlags/CompositeFeatureFlagsProvider.swift index b3dfa05fc..790a19bd0 100644 --- a/Utilities/Utilities/_Utils/_FeatureFlags/CompositeFeatureFlagsProvider.swift +++ b/Utilities/Utilities/_Utils/_FeatureFlags/CompositeFeatureFlagsProvider.swift @@ -57,9 +57,9 @@ public class CompositeFeatureFlagsProvider: NSObject & FeatureFlagsProtocol { public func isOn(feature: String) -> Bool? { switch Installation.source { case .appStore, .jailBroken: - return remote?.isOn(feature: feature) == true + return remote?.isOn(feature: feature) case .debug, .testFlight: - return local?.isOn(feature: feature) ?? remote?.isOn(feature: feature) ?? false + return local?.isOn(feature: feature) ?? remote?.isOn(feature: feature) } }