File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -150,16 +150,14 @@ internal final class _SwiftValue : NSObject, NSCopying {
150
150
// as if we returned the unboxed value directly.
151
151
}
152
152
153
- // On Linux, case 2 is handled below , and case 3 can't happen —
153
+ // On Linux, case 2 is handled by the stdlib bridging machinery , and case 3 can't happen —
154
154
// the compiler will produce SwiftFoundation._SwiftValue boxes rather than ObjC ones.
155
155
#endif
156
156
157
157
if object === kCFBooleanTrue {
158
158
return true
159
159
} else if object === kCFBooleanFalse {
160
160
return false
161
- } else if type ( of: object) == NSNull . self {
162
- return Optional < Any > . none as Any
163
161
} else if let container = object as? _SwiftValue {
164
162
return container. value
165
163
} else if let val = object as? _StructBridgeable {
You can’t perform that action at this time.
0 commit comments