mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 10:43:30 +01:00
fix: crash if save is called on non-unstable build
This commit is contained in:
@@ -72,6 +72,9 @@ class UnstableFeatures {
|
|||||||
UserDefaults.shared.unstableFeatures = try! JSONEncoder().encode(rawFeatures)
|
UserDefaults.shared.unstableFeatures = try! JSONEncoder().encode(rawFeatures)
|
||||||
print("\(load ? "Loaded" : "Saved") unstable features: \(String(describing: rawFeatures))")
|
print("\(load ? "Loaded" : "Saved") unstable features: \(String(describing: rawFeatures))")
|
||||||
|
|
||||||
|
#else
|
||||||
|
// we want this to crash, this function should never be triggered on non-unstable builds
|
||||||
|
fatalError("Tried to save unstable features on non-unstable build!")
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user