Skip to content

Commit

Permalink
Update UserDefaults.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 13, 2024
1 parent 025a893 commit a4a8201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Defaults/UserDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extension UserDefaults {
}

func _set<Value: Defaults.Serializable>(_ 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
}
Expand Down

0 comments on commit a4a8201

Please sign in to comment.