Skip to content

Commit 6f94583

Browse files
committed
Fix cast that is disallowed by SE-0054.
SE-0054 (Abolish ImplicitlyUnwrappedOptionalType) substantially reduced the number of places that '!' can be used, but the implementation missed certain cases like this one. That implementation is being overhauled to catch all the illegal cases.
1 parent f23d554 commit 6f94583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSKeyedArchiverHelpers.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal class _NSKeyedArchiverUID : NSObject {
2929
}
3030

3131
open override var hash: Int {
32-
return Int(bitPattern: CFHash(_cfObject as CFTypeRef!))
32+
return Int(bitPattern: CFHash(_cfObject as CFTypeRef?))
3333
}
3434

3535
open override func isEqual(_ object: Any?) -> Bool {

0 commit comments

Comments
 (0)