mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 19:23:43 +01:00
fix warning
This commit is contained in:
@@ -40,7 +40,7 @@ class UnstableFeatures {
|
|||||||
if features.count > 0 { return print("It seems unstable features have already been loaded, skipping") }
|
if features.count > 0 { return print("It seems unstable features have already been loaded, skipping") }
|
||||||
|
|
||||||
if let rawFeatures = UserDefaults.shared.unstableFeatures,
|
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 {
|
for rawFeature in rawFeatures {
|
||||||
if let feature = AvailableUnstableFeature.allCases.first(where: { feature in String(describing: feature) == rawFeature.key }) {
|
if let feature = AvailableUnstableFeature.allCases.first(where: { feature in String(describing: feature) == rawFeature.key }) {
|
||||||
features[feature] = rawFeature.value
|
features[feature] = rawFeature.value
|
||||||
|
|||||||
Reference in New Issue
Block a user