Bug 1108304 - Remove deprecated let block in dom/contacts/fallback/ContactDB.jsm. r=reuben
authorChris Peterson <cpeterson@mozilla.com>
Sun, 30 Nov 2014 00:12:48 -0800
changeset 219051 d5fb8084657a577d5ea04a24fe945344a73dba00
parent 219050 af29bc3f9660a423e7e06bf1e05d1fa33ba666b3
child 219052 824d26fdcb28fe553b3efa43026a7ca8d37f107c
push id27954
push userryanvm@gmail.com
push dateWed, 10 Dec 2014 21:10:24 +0000
treeherdermozilla-central@0cf461e62ce5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersreuben
bugs1108304
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1108304 - Remove deprecated let block in dom/contacts/fallback/ContactDB.jsm. r=reuben
dom/contacts/fallback/ContactDB.jsm
--- a/dom/contacts/fallback/ContactDB.jsm
+++ b/dom/contacts/fallback/ContactDB.jsm
@@ -998,19 +998,18 @@ ContactDB.prototype = {
             if (DEBUG) debug("rev check OK");
             contact.published = event.target.result.published;
             contact.updated = new Date();
             store.put(contact);
           }
         }
         // Invalidate the entire cache. It will be incrementally regenerated on demand
         // See getCacheForQuery
-        let (getAllStore = txn.objectStore(SAVED_GETALL_STORE_NAME)) {
-          getAllStore.clear().onerror = errorCb;
-        }
+        let getAllStore = txn.objectStore(SAVED_GETALL_STORE_NAME);
+        getAllStore.clear().onerror = errorCb;
       }.bind(this);
 
       this.incrementRevision(txn);
     }.bind(this), successCb, errorCb);
   },
 
   removeContact: function removeContact(aId, aSuccessCb, aErrorCb) {
     if (DEBUG) debug("removeContact: " + aId);