diff --git a/Sources/Defaults/UserDefaults.swift b/Sources/Defaults/UserDefaults.swift index daf8c40..6dd82e0 100644 --- a/Sources/Defaults/UserDefaults.swift +++ b/Sources/Defaults/UserDefaults.swift @@ -10,7 +10,7 @@ extension UserDefaults { } func _set(_ key: String, to value: Value) { - if (value as? (any _DefaultsOptionalProtocol))?._defaults_isNil == true { + if (value as? (any _DefaultsOptionalProtocol))?._defaults_isNil == true { removeObject(forKey: key) return }