1
0
mirror of git://jb55.com/damus synced 2024-10-01 17:30:44 +00:00

test: fix crash in ci

This commit is contained in:
William Casarin 2023-07-17 11:24:50 -07:00
parent 2c0296cce3
commit 4033ad66ba

View File

@ -31,7 +31,7 @@ func setting_get_property_value<T>(key: String, scoped_key: String, default_valu
func setting_set_property_value<T: Equatable>(scoped_key: String, old_value: T, new_value: T) -> T? { func setting_set_property_value<T: Equatable>(scoped_key: String, old_value: T, new_value: T) -> T? {
guard old_value != new_value else { return nil } guard old_value != new_value else { return nil }
UserDefaults.standard.set(new_value, forKey: scoped_key) UserDefaults.standard.set(new_value, forKey: scoped_key)
UserSettingsStore.shared!.objectWillChange.send() UserSettingsStore.shared?.objectWillChange.send()
return new_value return new_value
} }