VersionedMap.delete() should return true/false

This commit is contained in:
Zaid Abdulla committed 2017-07-30 04:52:57 -07:00
1 parent 3012f29bb2
commit 0ca44d7ffb
1 file changed
+2 -1
+2 -1
View File
@@ -124,6 +124,7 @@ class VersionedMap {
v[rev] = value;
}
delete(key, rev) {
if (rev == null)
rev = this._revision;
@@ -142,7 +143,7 @@ class VersionedMap {
-- this._sizeDiff[rev];
v[rev] = NONEXISTENT;
return old;
return true;
}