Skip to content

Commit

Permalink
Simplify conditionals for simulator and debug features to match DIY &…
Browse files Browse the repository at this point in the history
… Tidepool needs
  • Loading branch information
ps2 committed Jun 21, 2022
1 parent 2a585a3 commit ddb76eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Common/FeatureFlags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ extension FeatureFlagConfiguration {
#if ALLOW_DEBUG_FEATURES_ENABLED
return true
#else
if debugEnabled {
return true
} else if UserDefaults.appGroup?.allowDebugFeatures ?? false {
if UserDefaults.appGroup?.allowDebugFeatures ?? false {
return true
} else {
return false
Expand All @@ -246,9 +244,7 @@ extension FeatureFlagConfiguration {
#if ALLOW_SIMULATORS_ENABLED
return true
#else
if debugEnabled {
return true
} else if UserDefaults.appGroup?.allowSimulators ?? false {
if UserDefaults.appGroup?.allowSimulators ?? false {
return true
} else {
return false
Expand Down

0 comments on commit ddb76eb

Please sign in to comment.