Skip to content

Commit 366fbe6

Browse files
committed
remove Mirror
1 parent db2786e commit 366fbe6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/KeyValueEncoder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ extension KeyValueEncoder.NilEncodingStrategy {
122122
}
123123

124124
static func isOptionalNone(_ value: Any) -> Bool {
125-
if Mirror(reflecting: value).displayStyle == .optional,
126-
case Optional<Any>.none = value {
125+
if case nil as Any? = value {
127126
return true
128127
} else {
129128
return false

0 commit comments

Comments
 (0)