Skip to content

Commit 8d4b6a5

Browse files
committed
Fix the build per comments.
1 parent 5bb619b commit 8d4b6a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Foundation/Bridging.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,14 @@ internal final class _SwiftValue : NSObject, NSCopying {
150150
// as if we returned the unboxed value directly.
151151
}
152152

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 —
154154
// the compiler will produce SwiftFoundation._SwiftValue boxes rather than ObjC ones.
155155
#endif
156156

157157
if object === kCFBooleanTrue {
158158
return true
159159
} else if object === kCFBooleanFalse {
160160
return false
161-
} else if type(of: object) == NSNull.self {
162-
return Optional<Any>.none as Any
163161
} else if let container = object as? _SwiftValue {
164162
return container.value
165163
} else if let val = object as? _StructBridgeable {

0 commit comments

Comments
 (0)