Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: lib/coreimpl/linked_hash_map.dart

Issue 11233032: [core] cleanup === and !== (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/coreimpl/hash_map_set.dart ('k') | lib/coreimpl/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/linked_hash_map.dart
===================================================================
--- lib/coreimpl/linked_hash_map.dart (revision 13874)
+++ lib/coreimpl/linked_hash_map.dart (working copy)
@@ -45,20 +45,20 @@
V operator [](K key) {
DoubleLinkedQueueEntry<KeyValuePair<K, V>> entry = _map[key];
- if (entry === null) return null;
+ if (entry == null) return null;
return entry.element.value;
}
V remove(K key) {
DoubleLinkedQueueEntry<KeyValuePair<K, V>> entry = _map.remove(key);
- if (entry === null) return null;
+ if (entry == null) return null;
entry.remove();
return entry.element.value;
}
V putIfAbsent(K key, V ifAbsent()) {
V value = this[key];
- if ((this[key] === null) && !(containsKey(key))) {
+ if ((this[key] == null) && !(containsKey(key))) {
value = ifAbsent();
this[key] = value;
}
« no previous file with comments | « lib/coreimpl/hash_map_set.dart ('k') | lib/coreimpl/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698