Skip to content

Commit 319020a

Browse files
Kai AldagKai Aldag
Kai Aldag
authored and
Kai Aldag
committed
removed the use of _storage for keyEnumerator
1 parent b488e6c commit 319020a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/NSDictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ public class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCodin
282282
return false
283283
}
284284

285-
for (key, value) in _storage {
285+
for key in keyEnumerator() {
286286
if otherDictionary[key] == nil {
287287
return false
288-
} else if otherDictionary[key] != value {
288+
} else if otherDictionary[key] != objectForKey(key) {
289289
return false
290290
}
291291
}

0 commit comments

Comments
 (0)