fix warning

This commit is contained in:
naturecodevoid
2023-05-20 10:47:55 -07:00
parent 7f39d010b2
commit ad98ce43a9

View File

@@ -40,7 +40,7 @@ class UnstableFeatures {
if features.count > 0 { return print("It seems unstable features have already been loaded, skipping") }
if let rawFeatures = UserDefaults.shared.unstableFeatures,
var rawFeatures = try? JSONDecoder().decode([String: Bool].self, from: rawFeatures) {
let rawFeatures = try? JSONDecoder().decode([String: Bool].self, from: rawFeatures) {
for rawFeature in rawFeatures {
if let feature = AvailableUnstableFeature.allCases.first(where: { feature in String(describing: feature) == rawFeature.key }) {
features[feature] = rawFeature.value