Update Defaults+Bridge.swift

This commit is contained in:
Sindre Sorhus 2022-05-12 14:14:43 +07:00 committed by GitHub
parent b07488f92d
commit 06387d04b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -347,6 +347,7 @@ extension Defaults {
guard let value = value else {
return nil
}
if Bound.isNativelySupportedType {
return [value.lowerBound, value.upperBound]
}
@ -365,6 +366,7 @@ extension Defaults {
guard let object = object else {
return nil
}
if Bound.isNativelySupportedType {
guard
let lowerBound = object[safe: 0] as? Bound,