Skip to content

Commit 5af359b

Browse files
committed
Use _SwiftValue.store(aKey)
1 parent ee88950 commit 5af359b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Foundation/NSDictionary.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,7 @@ open class NSMutableDictionary : NSDictionary {
586586
guard type(of: self) === NSDictionary.self || type(of: self) === NSMutableDictionary.self else {
587587
NSRequiresConcreteImplementation()
588588
}
589-
let aKey = (aKey as? NSObject) ?? NSString(string: aKey as! String)
590-
_storage[aKey] = _SwiftValue.store(anObject)
589+
_storage[_SwiftValue.store(aKey)] = _SwiftValue.store(anObject)
591590
}
592591

593592
public convenience required init() {

0 commit comments

Comments
 (0)